On Wed, 3 Apr 2019 at 19:52, Kunalsing Thakur <bits.kunals...@gmail.com> wrote:
> playbook:- > task:- > - name: Deploying PCC-test > hosts: pulp > gather_facts: true > vars_files: > - /etc/ansible/inventories/group_vars/common.yaml > vars: > - rpmsearch: true > - rpmname: > - mobi-auth-manager-5.42.0-201903291228.ed4d6a0.noarch > serial: 1 > any_errors_fatal: true > roles: > - role: mobi_ansible_role_pulp > > Pulp.yaml:- > > --- > - name: Logging into pulp > shell: pulp-admin login -u admin -p admin > - name: searching the rpm into pulp repo > shell: pulp-admin rpm repo content rpm --repo-id=mobi-snapshots --match > 'filename={{ item }}' > with_items: "{{ rpmname | default([]) }}" > register: pulp > when: rpmsearch is defined > - debug: > var: pulp.results.stdout > This should be var: pulp.stdout -R.Rao -- 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 group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKbF63ha0PX0YwyUrC4pwC3ckv%2B0TzfExYrONknO35tHJoWxNg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.