Menu

Managing ACLs Using Ansible
πŸ“°

Managing ACLs Using Ansible

DEV Community: ansibleΒ·Janak ShresthaΒ·1 day ago
#ShkRgl5W
#devtoansible#devto#dev#group#ansible
Reading 0:00
15s threshold

There are some files that need to be created on all app servers in Stratos DC . The Nautilus DevOps team want these files to be owned by user root only however, they also want that the app specific user to have a set of permissions on these files. All tasks must be done using Ansible only, so they need to create a playbook. Below you can find more information about the task.

Create a playbook named playbook.yml under /home/thor/ansible directory on jump host , an inventory file is already present under /home/thor/ansible directory on Jump Server itself.

Create an empty file blog.txt under /opt/dba/ directory on app server 1. Set some acl properties for this file. Using acl provide read '(r)' permissions to group tony (i.e entity is tony and etype is group ).

Create an empty file story.txt under /opt/dba/ directory on app server 2. Set some acl properties for this file.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.