From 56ce142b2db06c5a4450ebc07b83c33304061d8f Mon Sep 17 00:00:00 2001 From: "alessandro.rabiti" Date: Thu, 5 Dec 2024 01:16:01 +0100 Subject: [PATCH] feat: esempio per utilizzo di ansible-pull --- 11_ansible_pull/1_playbook.yaml | 9 +++++++++ 11_ansible_pull/README.md | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 11_ansible_pull/1_playbook.yaml create mode 100644 11_ansible_pull/README.md 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 +```