ansible

Beheer een groep van computers op afstand over SSH. (Gebruik het /etc/ansible/hosts bestand om nieuwe groepen/hosts toe te voegen). Sommige subcommando’s zoals galaxy hebben hun eigen documentatie. Meer informatie: https://docs.ansible.com/ansible/latest/cli/ansible.html.

ansible {{groep}} --list-hosts

ansible {{groep}} {{[-m|--module-name]}} ping

ansible {{groep}} {{[-m|--module-name]}} setup

ansible {{groep}} {{[-m|--module-name]}} command {{[-a|--args]}} '{{mijn_commando}}'

ansible {{groep}} {{[-b|--become]}} --ask-become-pass {{[-m|--module-name]}} command {{[-a|--args]}} '{mijn_commando}}'

ansible {{groep}} {{[-i|--inventory]}} {{inventaris_bestand}} {{[-m|--module-name]}} command {{[-a|--args]}} '{{mijn_commando}}'

ansible localhost {{[-m|--module-name]}} debug {{[-a|--args]}} '{{var=groups.keys()}}'