mirror of
https://github.com/Rudd-O/ansible-qubes.git
synced 2025-03-01 14:22:33 +01:00

* 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.
20 lines
370 B
YAML
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'
|