Restrict Ansible script module using sudoers on the remote node

前端 未结 3 1845
遇见更好的自我
遇见更好的自我 2020-12-21 21:43

I have a playbook that performs some prechecks on the database as the Oracle user. The remote node is an AIX server and so I created a shell script that is ran via the playb

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-21 21:59

    Q: "This also runs if the sudoers entry is just ansible ALL=(oracle) NOPASSWD: ALL"

    A: Quoting from Privilege escalation must be general:

    "You cannot limit privilege escalation permissions to certain commands..."

提交回复
热议问题