Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #13 from Ymil/master
Browse files Browse the repository at this point in the history
Adding tags and update README.md
  • Loading branch information
ramondelafuente authored Jul 11, 2019
2 parents 9f8e1d1 + 5f8d42f commit 78905f5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ Role Variables
dumpall_guest_destination: /tmp/ansible.all
dumpall_host_destination: /somewhere/local/

Role Tags
--------------

ansible-dumpall
ansible-dumpall-all-vars
ansible-dumpall-retrieve-dumpfile
ansible-dumpall-remove-dumpfile-guest

Example Playbook
-------------------------

Expand Down
9 changes: 9 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

- name: Dump all vars
template: src=dumpall.j2 dest={{ dumpall_guest_destination }}
tags:
- ansible-dumpall
- ansible-dumpall-all-vars

- name: Retrieve dumpfile
fetch: "src={{ dumpall_guest_destination }} dest={{ dumpall_host_destination }} flat={{ dumpall_flat_mode }}"
when: "dumpall_host_destination is defined"
tags:
- ansible-dumpall
- ansible-dumpall-retrieve-dumpfile

- name: Remove dumpfile on the guest
file: path={{ dumpall_guest_destination }} state=absent
when: "dumpall_host_destination is defined"
tags:
- ansible-dumpall
- ansible-dumpall-remove-dumpfile-guest

0 comments on commit 78905f5

Please sign in to comment.