mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-15 14:02:02 +00:00
Merge pull request #130 from rjeffman/sudocmd
New sudocmd management module.
This commit is contained in:
11
playbooks/sudocmd/ensure-sudocmd-is-absent.yml
Normal file
11
playbooks/sudocmd/ensure-sudocmd-is-absent.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Playbook to manage sudo command
|
||||
hosts: ipaserver
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
# Ensure sudo command is absent
|
||||
- ipasudocmd:
|
||||
ipaadmin_password: MyPassword123
|
||||
name: /usr/bin/su
|
||||
state: absent
|
||||
11
playbooks/sudocmd/ensure-sudocmd-is-present.yml
Normal file
11
playbooks/sudocmd/ensure-sudocmd-is-present.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Playbook to manage sudo command
|
||||
hosts: ipaserver
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
# Ensure sudo command is present
|
||||
- ipasudocmd:
|
||||
ipaadmin_password: MyPassword123
|
||||
name: /usr/bin/su
|
||||
state: present
|
||||
Reference in New Issue
Block a user