ansible-freeipa/0002-ipauser-exmaple-playbooks-More-updates.patch
Thomas Woerner 1904aa21e1 - Update README-user.md: Fixed examples, new example
- ipauser example playbooks: Fixed actions, new example
2019-07-09 12:14:12 +02:00

64 lines
1.9 KiB
Diff

From e63b5759b3771e3531bf68943b49fc19c41afa79 Mon Sep 17 00:00:00 2001
From: Thomas Woerner <twoerner@redhat.com>
Date: Tue, 9 Jul 2019 11:49:50 +0200
Subject: [PATCH 2/2] ipauser exmaple playbooks: More updates
---
playbooks/user/delete-preserve-user.yml | 2 +-
playbooks/user/delete-user.yml | 2 +-
playbooks/user/enable-user.yml | 2 +-
playbooks/user/unlock-users.yml | 11 +++++++++++
4 files changed, 14 insertions(+), 3 deletions(-)
create mode 100644 playbooks/user/unlock-users.yml
diff --git a/playbooks/user/delete-preserve-user.yml b/playbooks/user/delete-preserve-user.yml
index e366e11..c202b15 100644
--- a/playbooks/user/delete-preserve-user.yml
+++ b/playbooks/user/delete-preserve-user.yml
@@ -9,4 +9,4 @@
ipaadmin_password: MyPassword123
name: pinky
preserve: yes
- state: disabled
+ state: absent
diff --git a/playbooks/user/delete-user.yml b/playbooks/user/delete-user.yml
index 0cf9b79..101a2b4 100644
--- a/playbooks/user/delete-user.yml
+++ b/playbooks/user/delete-user.yml
@@ -8,4 +8,4 @@
ipauser:
ipaadmin_password: MyPassword123
name: pinky
- state: disabled
+ state: absent
diff --git a/playbooks/user/enable-user.yml b/playbooks/user/enable-user.yml
index 8d036f2..dfbba49 100644
--- a/playbooks/user/enable-user.yml
+++ b/playbooks/user/enable-user.yml
@@ -8,4 +8,4 @@
ipauser:
ipaadmin_password: MyPassword123
name: pinky
- state: disabled
+ state: enabled
diff --git a/playbooks/user/unlock-users.yml b/playbooks/user/unlock-users.yml
new file mode 100644
index 0000000..337e97f
--- /dev/null
+++ b/playbooks/user/unlock-users.yml
@@ -0,0 +1,11 @@
+---
+- name: Playbook to handle users
+ hosts: ipaserver
+ become: true
+
+ tasks:
+ - name: Unlock users pinky and brain
+ ipauser:
+ ipaadmin_password: MyPassword123
+ name: pinky,brain
+ state: unlocked
--
2.21.0