Skip to content
Snippets Groups Projects
Commit 51dd5a68 authored by eturkmen's avatar eturkmen
Browse files

Update file Playbook-Test2.yaml

parent ca5f2a24
No related branches found
No related tags found
No related merge requests found
......@@ -30,9 +30,9 @@
- name: Output for pending reboot
debug:
msg: "A system restart is required."
when: reboot_required_output.rc == 0 and "Yes" in reboot_required_output.stdout
when: reboot_required_output.stdout is defined and "Yes" in reboot_required_output.stdout
- name: Output for no pending reboot
debug:
msg: "No system restart is required."
when: reboot_required_output.rc == 0 and "Yes" not in reboot_required_output.stdout
when: reboot_required_output.stdout is not defined or "Yes" not in reboot_required_output.stdout
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