I have targets who have set a user pw to expire and I want to switch the 
expiration off with  `sudo chage -l stepuser`.

this seems to work with a task like this:

- name: switch off pw expiration for stepuser
shell:
cmd: chage -M -1 stepuser
become: yes

Beind quite new to ansible I am wondering whether this is the right approach 
for such or anything else would be more suitable way (I can not identify any 
convincing paramter in the user module though)?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/701694434.15902.1633436424271%40office.mailbox.org.

Reply via email to