--- - hosts: all tasks: - name: installation de apache package: name: apache2 state: latest enabled: yes - name: installation de mysql package: name: mysql state: latest enabled: yes - name: installation de mariadb package: name: mariadb-server state: latest enabled: yes - name: initialisation du mot de passe root mysql_user: name: root password: "{{ Azerty1+ }}" login_unix_socket: /var/run/mysqld/mysqld.sock - name: suppression de tous les utilisateurs inconnus mysql_user: name: '' host_all: yes state: absent login_user: root login_password: "{{ Azerty1+ }}" - name: suppression de la database test de mysql mysql_db: name: test state: absent login_user: root login_password: "{{ mysql_root_password }}"