- name: on lance MariaDB service: name: mysql state: started - name: creation de la BDD sdis29 mysql_db: login_unix_socket: /var/run/mysqld/mysqld.sock name: sdis29 - name: creation de l'utilisateur slam mysql_user: name: slam password: Azerty1+ priv: '*.*:ALL,GRANT' state: present login_unix_socket: /var/run/mysqld/mysqld.sock #- name: injection de la BDD #command: scp sio@10.121.38.95:/home/sio/bdd/sdis29.sql /tmp - name: restauration de la bdd mysql_db: login_unix_socket: /var/run/mysqld/mysqld.sock name: sdis29 state: import target: /tmp/sdis29.sql login_user: slam login_password: Azerty1+ notify: Restart MySQL