ansible-roles/evolinux-todo/tasks/cat.yml
Jérémy Lecour c1afb68d19 Add an "evolinux-todo" role
It makes sure there is a /etc/evolinux/todo.txt where we can append 
tasks to be done manually.

It has a task to output the content of the file, for exemple at the end 
of a playbook run.
2018-08-24 14:31:11 +02:00

17 lines
328 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
- debug:
var: evolinux_todo.stdout_lines
when: evolinux_todo.stdout != ""
- debug:
msg: "There is nothing to do !"
when: evolinux_todo.stdout == ""