to get host inventory
- name: Install this only for local dev machine
pip: name=pyramid
when: inventory_hostname == "local"
instead of inventory_hostname , can use group_names to get individual group
copy command fails for large files use synchronize
tasks:
- name: Transfer file from ServerA to ServerB
synchronize:
src: /path/on/server_a
dest: /path/on/server_b
No comments:
Post a Comment