Member-only story
Ansible troubleshooting — user module password_expiry_min bug and workaround
How to reproduce the `password_expiry_min` bug of the module user, triage, read the GitHub report, and workaround!
4 min readNov 10, 2021
Today we’re going to talk about Ansible troubleshooting, specifically about the user module bug and possible workaround.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot
Demo
The best way of talking about Ansible troubleshooting is to jump in a live demo to show you practically the user module bug triage and possible workaround!
Reproducer
- userbug_error.yml
---
- name: user module demo
hosts: all
become: true
vars:
myuser: "example"
tasks:
- name: password expiration
ansible.builtin.user:
name: "{{ myuser }}"
password_expire_min: 7
password_expire_max: 90
execution
$ ansible-playbook -i demo/inventory troubleshooting/userbug_error.yml.ymlPLAY [user module demo]…