July 2017
Intermediate to advanced
266 pages
6h 36m
English
Transferring files from the local Ansible control server to a set of target machines is critical for software deployment implementations. Ansible provides a very handy copy module that can help us accomplish exactly this. The copy module provides a number of handy property knobs, which can further our goal by allowing us to set file permissions, change ownership, decrypt the file, create backups, and more. Let's take a look at how to deliver files from the local Ansible control server over to target machines using the copy module:
# Example from Ansible Playbooks- copy: src: /srv/myfiles/foo.conf dest: /etc/foo.conf owner: foo group: foo mode: 0644# The same example as above, but using a symbolic mode# equivalent ...
Read now
Unlock full access