2021-12-14 15:11:34 +01:00

40 lines
688 B
YAML
Executable File

- name: update
apt:
update_cache: yes
ignore_errors: yes
- name: installer MariaDB Serveur
apt:
name: mariadb-server
state: latest
- name: installer mariadbclient
apt:
name: mariadb-client
state: latest
- name: installer python
apt:
name: python
state: latest
- name: demarrer mysql
service:
name: mysqld
state: started
enabled: yes
- name: creer la bdd
community.mysql.mysql_db:
name:
- sdis29
state: present
- name: creer l'utilisateur
mysql_user:
name: slam
password: Azerty1+
priv: *.*:ALL
host: 127.0.0.1
become: yes