users.yml 547 B

123456789101112131415
  1. ---
  2. - name: Ensure Mariadb users are present.
  3. mysql_user:
  4. name: "{{ item.name }}"
  5. #host: "{{ item.host | default('localhost') }}"
  6. host: "{{ app_bind_address | default('localhost') }}"
  7. password: "{{ item.password }}"
  8. priv: "{{ item.priv | default('*.*:USAGE') }}"
  9. state: "{{ item.state | default('present') }}"
  10. append_privs: "{{ item.append_privs | default('no') }}"
  11. encrypted: "{{ item.encrypted | default('no') }}"
  12. login_unix_socket: "{{ mariadb_socket }}"
  13. with_items: "{{ mariadb_user }}"
  14. no_log: true