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

f500/ansible-dumpall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dumpall

Dump all remote variables and optionally copy the result to a destination on the host.

Based on the excellent work by Lester Wade!

Requirements

None.

Role Variables

dumpall_flat_mode: yes
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

Example without a host_destination will result in a dumpfile /tmp/ansible.all on the guest:

- hosts: servers
  roles:
     - f500.dumpall

Example with a host_destination will result in a dumpfile /examine/ansible.all on the host machine: (the dumpfile on the guest is removed)

- hosts: servers
  roles:
     - { role: f500.dumpall, dumpall_host_destination: /examine/ }

If you also set the flat_mode to false, the local filename will be the entire path of the guest_destination, prepended by the hostname of the current play. See the Ansible fetch module for more information.

License

LGPL

Author Information

Jasper N. Brouwer, [email protected]

Ramon de la Fuente, [email protected]