Posts

Showing posts with the label Ansible file module

Ansible 3 Exploring on the files, copy, fetch modules

Image
Hello Guys this is another post on the Ansible learning experiments, well in this post,  I've explored about files and directories which can be created and copied and downloaded and uploaded. We could also do file permission changes how we do in Linux 'chmod' and 'chown' commands. Let's begin with effectively doing automation management with configurations and deploy the challenges related to files and directories. We can compare ansible modules copy and fetch both are related to file moment and they work in opposite directions as shown below: Ansible modules copy vs fetch We have many files related modules available in the Ansible.  acl archive unarchive iso_extract read_csv synchronize assemble tempfile template xattr xml blockinfile lineinfile patch  copy fetch file find stat replace In this post we will have three modules to experiment here. file copy fetch Prerequisites  Ansible installed controller node SSH password less connectivity established Here is a ...