unlock_special_user.playbook.yaml 491 B

12345678910111213141516
  1. ---
  2. - name: change expire time for user ***CONTENTS REDACTED*** to (date given in epoch time)
  3. hosts: all
  4. become: true
  5. collections:
  6. - ansible.builtin.user
  7. tasks:
  8. - name: description of task
  9. user:
  10. name: ***CONTENTS REDACTED***
  11. expires: '{{ epoch_time_for_expiration }}'
  12. state: "present"
  13. password: "***CONTENTS REDACTED***"
  14. update_password: "Always"
  15. - debug:
  16. var: uptimeoutput.stdout_lines