unlock_scan_user.playbook.yaml 536 B

12345678910111213141516
  1. ---
  2. - name: change expire time for user scan 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: scan
  11. expires: '{{ epoch_time_for_expiration }}'
  12. state: "present"
  13. password: "$6$0000000000000000$00000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
  14. update_password: "Always"
  15. - debug:
  16. var: uptimeoutput.stdout_lines