feat: esempio per utilizzo di ansible-pull
This commit is contained in:
parent
7026b78bc4
commit
56ce142b2d
2 changed files with 17 additions and 0 deletions
9
11_ansible_pull/1_playbook.yaml
Normal file
9
11_ansible_pull/1_playbook.yaml
Normal 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
|
||||||
8
11_ansible_pull/README.md
Normal file
8
11_ansible_pull/README.md
Normal 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
|
||||||
|
```
|
||||||
Loading…
Add table
Reference in a new issue