shutdown-at_job.yaml 729 B

1234567891011121314151617181920212223242526272829
  1. ---
  2. - name: Create at job to run shutdown at X
  3. hosts: CentOS7-TEST
  4. gather_facts: no
  5. become: true
  6. vars_prompt:
  7. - name: "days"
  8. prompt: "In how many DAYS from now should shutdown be scheduled?"
  9. private: false
  10. - name: "hours"
  11. prompt: In how many HOURS from now should the shutdown be scheduled?
  12. private: false
  13. - name: "minutes"
  14. prompt: In how many MINUTES from now should the shutdown be scheduled?
  15. private: false
  16. tasks:
  17. - name: show hours plus minutes
  18. debug:
  19. msg:
  20. - "The value for DAYS is {{ days }}"
  21. - "The value for HOURS is {{ hours }}"
  22. - "The value for MINUTES is {{ minutes }}"