summaryrefslogtreecommitdiff
path: root/lamp/tasks/test.yml
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2025-01-29 12:16:12 +0100
committerjerome <jerome@xlinfo.fr>2025-01-29 12:16:12 +0100
commit23ff2b6c3f4ca6335086a0336708035432bd9a09 (patch)
treeb0d6b8d8012d65b3c3dae459357ecf59683f7d50 /lamp/tasks/test.yml
parent948266d1c7f1ae107487699340715ddd41665f01 (diff)
downloadansible-lamp-23ff2b6c3f4ca6335086a0336708035432bd9a09.tar.gz
ansible-lamp-23ff2b6c3f4ca6335086a0336708035432bd9a09.zip
includes et imports
Diffstat (limited to 'lamp/tasks/test.yml')
-rw-r--r--lamp/tasks/test.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/lamp/tasks/test.yml b/lamp/tasks/test.yml
new file mode 100644
index 0000000..46d10e7
--- /dev/null
+++ b/lamp/tasks/test.yml
@@ -0,0 +1,19 @@
+---
+- name: install dépendances python
+ package:
+ name: '{{ mariadb.pythonlib }}'
+ state: present
+
+- name: Créerla base de données test
+ community.mysql.mysql_db:
+ name: toto
+ state: present
+ login_unix_socket: '{{mariadb.socket}}'
+
+- name: Créer un utilisateur test
+ community.mysql.mysql_user:
+ name: toto
+ password: secret
+ priv: 'toto.*:ALL'
+ state: present
+ login_unix_socket: '{{mariadb.socket}}'