Merge pull request #130 from rjeffman/sudocmd

New sudocmd management module.
This commit is contained in:
Thomas Woerner
2019-10-22 11:44:56 +02:00
committed by GitHub
6 changed files with 450 additions and 0 deletions

View 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

View 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