Hello Matt,
I was able to successfully do this task by following the instructions.
Thanks for matt to give some logic.
- name: searching the rpm into {{ reponame }} repo
shell: pulp-admin rpm repo content rpm --repo-id={{reponame}} --match
'filename={{ item }}'
loop: "{{ rpmname | default([])
Hello Matt,
i tried with task
- name: searching the rpm into {{ reponame }} repo
shell: pulp-admin rpm repo content rpm --repo-id={{reponame}} --match
'filename={{ item }}'
with_items: "{{ rpmname | default([]) }}"
register: pulp
when: search is defined
failed_when: escape in
You would need to convert that value from a shell escape sequence, to a
python escape sequence, for consumption by PyYAML.
The easiest way to express this will likely be:
- name: searching the rpm into pulp repo
shell: pulp-admin rpm repo content rpm --repo-id=mobi-snapshots --match
Gentle reminder, is anyone can help on this
--
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 ansible-project+unsubscr...@googlegroups.com.
To post to this
or is there way we can compare empty string.
On Thursday, April 4, 2019 at 12:30:45 PM UTC+5:30, Kunalsing Thakur wrote:
>
> Hello Team,
> When i was checking for string comparison in failed_when condition.
> the ansible task does not give any output if search is not found. but it
> will