Updated Ansible tasks to FQCN format

This commit is contained in:
2023-05-03 23:42:55 -04:00
parent 81d2ea447a
commit dfd93dd5f8
35 changed files with 202 additions and 202 deletions

View File

@@ -1,23 +1,23 @@
- name: Install MariaDB
apt:
ansible.builtin.apt:
name: mariadb-server
state: present
- name: Change the bind-address to allow Docker
lineinfile:
ansible.builtin.lineinfile:
path: /etc/mysql/mariadb.conf.d/50-server.cnf
regex: "^bind-address"
line: "bind-address = 0.0.0.0"
register: mariadb_conf
- name: Restart MariaDB
service:
ansible.builtin.service:
name: mariadb
state: restarted
when: mariadb_conf.changed
- name: Allow database connections
ufw:
community.general.ufw:
rule: allow
port: "3306"
proto: tcp