Use package_status.results
https://stackoverflow.com/questions/37925282/iteration-using-with-items-and-register
On Monday, 28 May 2018 00:32:17 UTC+5:30, Vino B wrote:
>
> Hi All
>
> Request your help on where to put the debug statement
>
> Requirement 1:
> If a package is missing the output
I fixed the error in the main play
- name: manage services
hosts: all
tasks:
- include_vars:
"{{playbook_dir}}/../roles/service_management/vars/s1s2grouping.yml"
But now it won't read variables
On Monday, 28 May 2018 00:03:22 UTC+5:30, Pranay Nanda wrote:
>
> I
I have an Ansible playbook that I want to load custom variables for. I do
not have access to the inventory but I wish to classify the variables by
their host names which can be classified in groups. The jobs would be fired
from Ansible Tower. Where should I put these variables such that they by
You're a hero! Splitting does the job. I still wonder why previous logic
did not work.
On Sunday, 27 May 2018 21:21:15 UTC+5:30, Pranay Nanda wrote:
>
> I want to run few tasks in shell if they satisfy a condition. Strangely
> the task runs if the second condition is satisfied ev
I want to run few tasks in shell if they satisfy a condition. Strangely the
task runs if the second condition is satisfied even though the first one
fails.
name: ods
shell: "/something {{state}}"
when: ((ods) and (not (ansible_hostname | search("demlh*"
register: sss_ods_out