- name: Start MySQL systemd service ({{ mysql_service }})
  systemd:
    state: started
    name: "{{ mysql_service }}"

- name: 'Create MySQL database for WordPress: {{ wp_db_name }}'
  mysql_db:
    name: "{{ wp_db_name }}"

- name: Create MySQL username ({{ wp_db_user }}) with password, for above database
  mysql_user:
    name: "{{ wp_db_user }}"
    password: "{{ wp_db_user_password }}"
    priv: "{{ wp_db_name }}.*:ALL,GRANT"
