September 2018
Beginner to intermediate
214 pages
5h 53m
English
The file module is basically the tool to manage everything to do with files and folder organization in terms of creation, removal, symlinks creation, permissions, and ownership.
We have linked the file module to the access control list (ACL) module, which is a module that only works on permission and ownership of files and folders on the Linux environment, to show that some tasks can be combined. This is shown in the following playbook:
- name: create a file with some specific acl file: path: /usr/local/script.py state: touch owner: user1 group: developers mode: 0755 - name: change acl of a file acl: path: /usr/local/script.py entity: user2 permission: w state: present
Read now
Unlock full access