ajout base ansible

This commit is contained in:
2026-07-07 07:50:19 +00:00
parent ce5bd20a0b
commit a72d045723
2 changed files with 10 additions and 0 deletions

2
inventory/hosts.ini Normal file
View File

@@ -0,0 +1,2 @@
[ansible_runner]
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3

8
playbooks/ping-local.yml Normal file
View File

@@ -0,0 +1,8 @@
- name: Test Ansible local
hosts: ansible_runner
gather_facts: true
tasks:
- name: Afficher un message de test
debug:
msg: "Ansible fonctionne correctement sur {{ inventory_hostname }}"