feat: initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Vérifier la création de table directement sur Ubuntu
|
||||
hosts: ubuntu
|
||||
become: yes
|
||||
tasks:
|
||||
- name: SHOW TABLES dans le conteneur MySQL
|
||||
ansible.builtin.command: >-
|
||||
docker exec tp-mysql mysql
|
||||
-uroot -p{{ mysql_root_password }}
|
||||
{{ mysql_database }}
|
||||
-e "SHOW TABLES;"
|
||||
register: show_tables
|
||||
changed_when: false
|
||||
|
||||
- name: Afficher les tables
|
||||
ansible.builtin.debug:
|
||||
var: show_tables.stdout_lines
|
||||
Reference in New Issue
Block a user