I wrote a playbook that allows a local user to use ansible "LINEINFILE"
module to edit /etc/sssd/sssd.conf and /etc/fstab. However I gave that
local user to run all sudo commands without password.
I want to limit the local user and only give specific permissions in the
/etc/sudoers file. . I want to know what LINUX command is actually being
used when we run LINEINFILE OR INSERTALINEINFILE ansible module.
an example of my playbook is as follows.
- name: Editing sssd.conf file
lineinfile:
path: /etc/sssd/sssd.conf
line: sudo_provider = ldap
Thank You!!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/37df9e2b-1dda-4437-9f49-c82d3843ae14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.