🚨 fix empty-string-compare
This commit is contained in:
parent
008fb803d9
commit
1fe440aabe
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
- name: DEBUG
|
||||
debug:
|
||||
msg: "{{ ansible_facts['nodename'] }} : {{ result.stdout }}"
|
||||
when: result.stdout != ""
|
||||
when: result.stdout is defined
|
||||
|
||||
# Add info line by line
|
||||
- name: Dump all info into the local file
|
||||
|
@ -28,4 +28,4 @@
|
|||
lineinfile:
|
||||
path: /tmp/ansible_dump_reboot_needed.txt
|
||||
line: "{{ ansible_facts['nodename'] }} : {{ result.stdout }}"
|
||||
when: result.stdout != ""
|
||||
when: result.stdout is defined
|
||||
|
|
Loading…
Reference in a new issue