Hi,
I've been working on single and multiple wars deployment ansible scripts.
To simplify teh mutiple I just created the vars/projectX.yml with the
artifacts information so the ansible call doesn't contain several
parameters...
I've been able to pull the artifacts from nexus and deployed them, but I
want to test the deployed apps only when an artifact's variable value has
been set, I just read about the "default{}"usage but what I need is to
check a specific attribute over the iteration. is this possible?
tasks/test_app_multiple.yml:
- name: Checking if the application is running
get_url: url=http://{{ host_ip.stdout }}:{{ application_port }}/{{
item.value.application_path }} dest="/tmp"
with_dict: artifacts
when: item.value.application_path != ""
* For the record, I got a similar task but for single deploy without the
"with_dict"clause and it works with no issues, in that case the
application_path variable is provided in ansible-playbook call as
argument...
--
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, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2fc8498c-63f5-4160-8d5c-3e5c64843e5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.