f500.dumpall

Dumpall

Dumpall is a tool that will collect all remote variables and can optionally save them to a location on the host machine.

This tool is based on the great work by Lester Wade!

Requirements

None needed.

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

  1. Without Host Destination: If you don't specify a host destination, the dump file will be created at /tmp/ansible.all on the remote server:

    - hosts: servers
      roles:
         - f500.dumpall
    
  2. With Host Destination: If you include a host destination, the dump file will be saved as /examine/ansible.all on the host machine. (The dump file on the remote server will be deleted.)

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

If you set flat_mode to false, the local filename will include the full path of the guest destination, starting with the hostname of the current play. For more info, check the Ansible fetch module.

License

LGPL

Author Information

Jasper N. Brouwer, jasper@nerdsweide.nl

Ramon de la Fuente, ramon@delafuente.nl

Informazioni sul progetto

Dumps all the ansible variables into a file for inspection

Installa
ansible-galaxy install f500.dumpall
Licenza
lgpl-3.0
Download
23.4k
Proprietario
Open source contributions by Future500