ubuntu.yml 400 B

12345678910111213141516
  1. - name: Allow remote hosts to connect (Ubuntu)
  2. lineinfile:
  3. path: /etc/mysql/mariadb.conf.d/50-server.cnf
  4. backrefs: yes
  5. regexp: '^bind-address'
  6. line: 'bind-address = 0.0.0.0'
  7. state: present
  8. become: yes
  9. # restart the mariadb service asap to allow remote access
  10. - name: Restart Mariadb
  11. systemd:
  12. name: mariadb
  13. state: restarted
  14. enabled: yes
  15. become: yes