forked from evolix/ansible-roles
Jérémy Lecour
c1afb68d19
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.
17 lines
328 B
YAML
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 == ""
|