Jérémy Lecour
2ed77c60f0
replace « x | changed » by « x is changed » add explicit « bool » filter use « length » filter instead of string comparison
14 lines
298 B
YAML
14 lines
298 B
YAML
---
|
|
|
|
- name: cat /etc/evolinux/todo.txt
|
|
command: "cat /etc/evolinux/todo.txt"
|
|
register: evolinux_todo
|
|
changed_when: False
|
|
failed_when: False
|
|
check_mode: no
|
|
|
|
- name: "Content of /etc/evolinux/todo.txt"
|
|
debug:
|
|
var: evolinux_todo.stdout_lines
|
|
when: evolinux_todo.stdout | length > 0
|