Ansible Playbook Permission

0

I have one host abc.com where I have downloaded playbooks from GitHub. There are multiple users which can connect to abc.com but I want to restrict the playbook execution for specific user X.

So that only X can execute the playbooks not the other users.

How can I achieve this ?

user2187367

Posted 2018-03-20T07:14:29.753

Reputation: 21

Answers

1

  • Create new user,
  • set 0750 to new home directory,
  • put playbooks into new homedir,
  • allow your user to run sudo -u newuser ansible example.yml.

Alexey Vazhnov

Posted 2018-03-20T07:14:29.753

Reputation: 115