I have use rsync with a local_action for something similar, but yes a "copy
directory" or even an rsync module would be nice.
tasks:
- name: install prereqs for ansible
action: apt pkg=$item
with_items:
- python-yaml
- python-paramiko
- python-jinja2
- name: create /export directory
action: command mkdir -p /export/ansible creates=/export/ansible
- name: rsync (push) ansible
local_action: command rsync --delete -uaSHAXEx /export/ansible/ansible
$inventory_hostname:/export/ansible
--
Yves.
http://www.SollerS.ca/
http://ipv6.SollerS.ca
http://blog.zioup.org/