From 23ff967f38c88be199c61355a40dd7fbb67d0ead Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Tue, 1 May 2012 22:49:17 -0700 Subject: [PATCH] Copy inventory file to client --- examples/playbooks/ansible_pull.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/playbooks/ansible_pull.yml b/examples/playbooks/ansible_pull.yml index 96b82735e7f..8a7e61daf4d 100644 --- a/examples/playbooks/ansible_pull.yml +++ b/examples/playbooks/ansible_pull.yml @@ -15,5 +15,8 @@ action: yum pkg=ansible state=installed - name: Create local directory to work from action: file path=$workdir state=directory owner=root group=root mode=0751 + - name: Copy ansible inventory file to client + action: copy src=/etc/ansible/hosts dest=/etc/ansible/hosts + owner=root group=root mode=0644 - name: Create crontab entry to clone/pull git repository action: template src=templates/ansible-pull.j2 dest=/etc/cron.d/ansible-pull owner=root group=root mode=0644