Skip to content

Instantly share code, notes, and snippets.

@zeitounator
Created July 30, 2020 15:02
Show Gist options
  • Save zeitounator/33edb7a5e7eb5450fddc8424eb788cac to your computer and use it in GitHub Desktop.
Save zeitounator/33edb7a5e7eb5450fddc8424eb788cac to your computer and use it in GitHub Desktop.
$ ansible --version
ansible 2.9.11
config file = None
configured module search path = ['/home/USER/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0]
$ ansible localhost -m debug -a msg="{{ 'myapp' in sites }}" -e '{"sites":{"myapp":{"frontend": 80, "backend": 80}}}'
localhost | SUCCESS => {
"msg": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment