💾 Archived View for freeshell.de › tldr › ansible.gmi captured on 2023-09-28 at 16:10:53. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Manage groups of computers remotely over SSH. (use the `/etc/ansible/hosts` file to add new groups/hosts).
Some subcommands such as `ansible galaxy` have their own usage documentation.
ansible {group} --list-hosts
ansible {group} -m ping
ansible {group} -m setup
ansible {group} -m command -a '{my_command}'
ansible {group} --become --ask-become-pass -m command -a '{my_command}'
ansible {group} -i {inventory_file} -m command -a '{my_command}'
ansible localhost -m debug -a '{var=groups.keys()}'
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).