run the playbook on multiple hosts with different credentials (#1980)
* run the playbook on multiple hosts with different credentials with this script * fix: add yaml missing document start "---" * fix: *now really* allow this script to be run from any directory * add about-note to examples/host.yml Co-authored-by: Slavi Pantaleev <slavi@devture.com> * improve ansible-all-hosts.sh related docs/configuring-playbook.md Co-authored-by: Slavi Pantaleev <slavi@devture.com> * fix typos :) Co-authored-by: Slavi Pantaleev <slavi@devture.com>
This commit is contained in:
11
examples/host.yml
Normal file
11
examples/host.yml
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
# This is a host file for usage with the `ansible-all-hosts.sh` script,
|
||||
# which runs Ansible against a bunch of hosts, each with its own `sudo` password.
|
||||
matrix_servers:
|
||||
hosts:
|
||||
matrix.<your domain>:
|
||||
ansible_host: <your server's external ip address>
|
||||
ansible_ssh_user: <your ssh user>
|
||||
become: true
|
||||
become_user: root
|
Reference in New Issue
Block a user