Skip to content
Snippets Groups Projects
Commit 33687bd2 authored by eturkmen's avatar eturkmen
Browse files

Update file Playbook-Test2.yaml

parent 34bc0228
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
- "Updates erfolgreich durchgeführt"
- "Updates erfolgreich, restart wird benötigt!"
- "Updates konnte nicht durchgeführt werden!!!"
when: update_output | success
when: not update_output.failed
- name: Output for Failed Updates
debug:
......@@ -30,10 +30,11 @@
- name: Output for pending reboot
debug:
msg: "A system restart is required."
when: reboot_required_output.stdout | regex_search(".*Yes.*")
when: reboot_required_output.stdout is search(".*Yes.*")
- name: Output for no pending reboot
debug:
msg: "No system restart is required."
when: reboot_required_output.stdout is not search(".*Yes.*")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment