#!/usr/bin/ansible-playbook # vim:ft=ansible: --- - name: Set up MySQL block: - name: Install MySQL apt: name: "{{ packages }}" vars: packages: - mariadb-server - python-mysqldb - name: Start MySQL service: name: mysql state: started enabled: true become: true