diff --git a/11_ansible_pull/1_playbook.yaml b/11_ansible_pull/1_playbook.yaml new file mode 100644 index 0000000..25df3f7 --- /dev/null +++ b/11_ansible_pull/1_playbook.yaml @@ -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 diff --git a/11_ansible_pull/README.md b/11_ansible_pull/README.md new file mode 100644 index 0000000..ce7c66a --- /dev/null +++ b/11_ansible_pull/README.md @@ -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 +```