From 5f8d42f952cdeaf73014707b0532fdc01b008f4e Mon Sep 17 00:00:00 2001 From: Lautaro Linquiman Date: Wed, 10 Jul 2019 17:51:56 -0300 Subject: [PATCH] Adding tags and update README.md --- README.md | 8 ++++++++ tasks/main.yml | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/README.md b/README.md index 14daae0..6130939 100644 --- a/README.md +++ b/README.md @@ -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 ------------------------- diff --git a/tasks/main.yml b/tasks/main.yml index f73d21b..ca80f02 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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