You can move the actual query string to a separate variable to reduce some
clutter and string concatenation. You can also use ` (backticks) to quote
jmes_path strings:
set_fact:
enabled_ports: "{{ intfs | json_query(enabled)}}"
vars:
enabled: "values(@)[?is_enabled
Is there a cleaner alternative to:
'{{ (things | json_query("[?name==''" + thing_name + "'']") }}'
In particular, ideally I want to avoid:
- String concatenation
- Escaping of quotes
--
You received this message because you are subscribed to the Google Groups
"Ansible Project"
Hi,
Is there any way to configure Ansible AWX dashboard settings so it can pick
up all our job, templates and hostnames by mentioning hostname and file
locations ?
Example: Ansible is working as expected and able to push files but i would
like to show that in dashboard. My awx configured on
Worth saying when you need to run against everything you can pass multiple
inventory files to the ansible-playbook command.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it,
Oh, I meant to say you can use the block...rescue ... allways with 'debug'
module to display the messages you want.
See http://docs.ansible.com/ansible/latest/playbooks_blocks.html
and http://docs.ansible.com/ansible/latest/debug_module.html
Jon
On Sunday, October 29, 2017 at 9:34:19 AM UTC, J
You can do something like this (thanks to Matt Martz who originally
suggested it)
- name: check if app is up and ready to serve the wsdl
uri:
url: 'http://{{ inventory_hostname }}/app/app.wsdl'
return_content: yes
timeout: 2
delegate_to: localhost
register: poll_result
until: