Robin Schneider 057d2f2ea5
Improved coding style as it is used in the DebOps project.
* Use YAML syntax which is better human readable.
* Try to use Ansible modules for operations when this is possible.
* `template/dumpenv/dumpenv.j2` seems to be missing.
2016-01-08 10:42:02 +01:00

20 lines
370 B
YAML

---
- name: Remove previous directory
file:
path: '/tmp/dump'
state: 'absent'
delegate_to: 'localhost'
- name: Create directory
file:
path: '/tmp/dump'
state: 'directory'
delegate_to: 'localhost'
- name: Dump all vars
template:
src: 'template/dumpenv/dumpenv.j2'
dest: '/tmp/dump/{{ inventory_hostname }}'
delegate_to: 'localhost'