ajout base ansible
This commit is contained in:
2
inventory/hosts.ini
Normal file
2
inventory/hosts.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[ansible_runner]
|
||||
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3
|
||||
8
playbooks/ping-local.yml
Normal file
8
playbooks/ping-local.yml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user