summaryrefslogtreecommitdiffstats
path: root/roles/user/handlers
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-08-11 00:32:01 +0200
committerAhmed Abdelhalim <[email protected]>2025-08-11 00:32:01 +0200
commitb9b0620b988870525b9972b537b8e22a0c6499af (patch)
treef150e474c8d6a2448443ade1184f9c0f01ea4f06 /roles/user/handlers
parent20ab3adb6b08944235c707490449c8906394564f (diff)
Add user role
Diffstat (limited to 'roles/user/handlers')
-rw-r--r--roles/user/handlers/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/user/handlers/main.yml b/roles/user/handlers/main.yml
new file mode 100644
index 00000000..2d9b6c32
--- /dev/null
+++ b/roles/user/handlers/main.yml
@@ -0,0 +1,7 @@
+---
+- name: "Require password change"
+ become: true
+ ansible.builtin.command:
+ cmd: chage -d 0 "{{ username }}"
+ changed_when: true
+ when: user.changed