feat: esempio per utilizzo di ansible-pull

This commit is contained in:
alessandro.rabiti 2024-12-05 01:16:01 +01:00
parent 7026b78bc4
commit 56ce142b2d
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,9 @@
---
- name: Play di esempio per utilizzo anisle pull
hosts: localhost
tasks:
- name: Touch del file /tmp/pippo.txt
ansible.builtin.file:
path: /tmp/pippo.txt
state: touch

View file

@ -0,0 +1,8 @@
# Esempio per dimostrazione funzionamento ansible pull
1.0) Esempio di utilizzo di ansible pull, eseguire il comando sull'host target:
- Il comando ansible pull esegue un playbook che fa un touch del file /tmp/pippo.txt in localhost
```
ansible-pull -U https://git.mulinet.xyz/alessandro.rabiti/corso_ansible/src/branch/main/11_ansible_pull playbook.yml
```