- Update README-user.md: Fixed examples, new example
- ipauser example playbooks: Fixed actions, new example
This commit is contained in:
parent
abce4d1a59
commit
1904aa21e1
104
0001-Update-README-user.md-Fixed-examples-new-example-for.patch
Normal file
104
0001-Update-README-user.md-Fixed-examples-new-example-for.patch
Normal file
@ -0,0 +1,104 @@
|
||||
From 00862d9709936d70be246573d3e1bd7a7cfcb180 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Woerner <twoerner@redhat.com>
|
||||
Date: Tue, 9 Jul 2019 11:46:51 +0200
|
||||
Subject: [PATCH 1/2] Update README-user.md: Fixed examples, new example for
|
||||
unlocked
|
||||
|
||||
---
|
||||
README-user.md | 35 ++++++++++++++++++++++++++---------
|
||||
1 file changed, 26 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/README-user.md b/README-user.md
|
||||
index 0467efc..8590d61 100644
|
||||
--- a/README-user.md
|
||||
+++ b/README-user.md
|
||||
@@ -83,16 +83,16 @@ Example playbook to delete a user, but preserve it:
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- # Remove user pinky and brain
|
||||
+ # Remove but preserve user pinky
|
||||
- ipauser:
|
||||
ipaadmin_password: MyPassword123
|
||||
name: pinky
|
||||
preserve: yes
|
||||
- state: disabled
|
||||
+ state: absent
|
||||
```
|
||||
|
||||
|
||||
-Example playbook to undelete a user.
|
||||
+Example playbook to undelete a preserved user.
|
||||
|
||||
```yaml
|
||||
---
|
||||
@@ -101,7 +101,7 @@ Example playbook to undelete a user.
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- # Remove user pinky and brain
|
||||
+ # Undelete preserved user pinky
|
||||
- ipauser:
|
||||
ipaadmin_password: MyPassword123
|
||||
name: pinky
|
||||
@@ -118,7 +118,7 @@ Example playbook to disable a user:
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- # Remove user pinky and brain
|
||||
+ # Disable user pinky
|
||||
- ipauser:
|
||||
ipaadmin_password: MyPassword123
|
||||
name: pinky
|
||||
@@ -126,7 +126,7 @@ Example playbook to disable a user:
|
||||
```
|
||||
|
||||
|
||||
-Example playbook to enable a users:
|
||||
+Example playbook to enable users:
|
||||
|
||||
```yaml
|
||||
---
|
||||
@@ -135,11 +135,28 @@ Example playbook to enable a users:
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- # Remove user pinky and brain
|
||||
+ # Enable user pinky and brain
|
||||
- ipauser:
|
||||
ipaadmin_password: MyPassword123
|
||||
name: pinky,brain
|
||||
- state: disabled
|
||||
+ state: enabled
|
||||
+```
|
||||
+
|
||||
+
|
||||
+Example playbook to unlock users:
|
||||
+
|
||||
+```yaml
|
||||
+---
|
||||
+- name: Playbook to handle users
|
||||
+ hosts: ipaserver
|
||||
+ become: true
|
||||
+
|
||||
+ tasks:
|
||||
+ # Unlock user pinky and brain
|
||||
+ - ipauser:
|
||||
+ ipaadmin_password: MyPassword123
|
||||
+ name: pinky,brain
|
||||
+ state: unlocked
|
||||
```
|
||||
|
||||
|
||||
@@ -156,7 +173,7 @@ Example playbook to delete users:
|
||||
- ipauser:
|
||||
ipaadmin_password: MyPassword123
|
||||
name: pinky,brain
|
||||
- state: disabled
|
||||
+ state: absent
|
||||
```
|
||||
|
||||
|
||||
--
|
||||
2.21.0
|
||||
|
63
0002-ipauser-exmaple-playbooks-More-updates.patch
Normal file
63
0002-ipauser-exmaple-playbooks-More-updates.patch
Normal file
@ -0,0 +1,63 @@
|
||||
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
|
||||
|
@ -6,10 +6,12 @@
|
||||
Summary: Roles and playbooks to deploy FreeIPA servers, replicas and clients
|
||||
Name: ansible-freeipa
|
||||
Version: 0.1.5
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
URL: https://github.com/freeipa/ansible-freeipa
|
||||
License: GPLv3+
|
||||
Source: https://github.com/freeipa/ansible-freeipa/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Patch1: 0001-Update-README-user.md-Fixed-examples-new-example-for.patch
|
||||
Patch2: 0002-ipauser-exmaple-playbooks-More-updates.patch
|
||||
BuildArch: noarch
|
||||
|
||||
#Requires: ansible
|
||||
@ -64,6 +66,9 @@ or clients in one playbook.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
# Do not create backup files with patches
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
# Fix python modules and module utils:
|
||||
# - Remove shebang
|
||||
# - Remove execute flag
|
||||
@ -98,6 +103,10 @@ cp -rp plugins/* %{buildroot}%{_datadir}/ansible/plugins/
|
||||
%doc playbooks
|
||||
|
||||
%changelog
|
||||
* Tue Jul 9 2019 Thomas Woerner <twoerner@redhat.com> - 0.1.5-2
|
||||
- Update README-user.md: Fixed examples, new example
|
||||
- ipauser example playbooks: Fixed actions, new example
|
||||
|
||||
* Tue Jul 9 2019 Thomas Woerner <twoerner@redhat.com> - 0.1.5-1
|
||||
- Update to version 0.1.5
|
||||
- Support for IPA 4.8.0
|
||||
|
Loading…
Reference in New Issue
Block a user