Skip to content

Instantly share code, notes, and snippets.

@quadriq
Created December 2, 2019 16:22
Show Gist options
  • Save quadriq/2f23b45008b879b1a4a52cfb20ed3744 to your computer and use it in GitHub Desktop.
Save quadriq/2f23b45008b879b1a4a52cfb20ed3744 to your computer and use it in GitHub Desktop.
ansible example
**** hosts file:
[wd_main]
localhost ansible_connection=local
[wd_ftu]
localhost ansible_connection=local
[wd:children]
wd_main
wd_ftu
***** two files in group_vars (diffrent vars inside)
group_vars
wd_ftu.yaml
wd_main.yaml
***** playbook
- hosts: wd
roles:
- name: webdisp
...
how can I run a playbook to limit it to e.g "wd_ftu" only?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment