--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/60b7d8f5-fad5-47c6-bb22-91c47ae0da1c%40googlegroups.com.
Jonathan Cha'gara Lozada De La Matta
He / Him / His
Senior Automation Practice Consultant & Automation CoP Manager
Join the Automation CoP! https://red.ht/autocop
- name: Promote new RHEL7 version to Lifecycle Environments uri: url: "https://satellite/katello/api/v2/content_view_versions/{{ (content_views7.json.results[0].id | int) }}/promote" method: POST body: description: "Promoted by Tower" environment_id: "{{ item }}" organization_id: 3 force: true user: "{{ satellite_user }}" password: "{{ satellite_pass }}" force_basic_auth: yes validate_certs: no body_format: json status_code: 202 register: promote_rhel7 loop: - 3 - 4 - 5 - 6 - 7 - 8 until: promote_rhel7.json.result == 'success' retries: 10 delay: 20fatal: [localhost]: FAILED! => {"msg": "The conditional check 'promote_rhel7.json.result == 'success'' failed. The error was: error while evaluating conditional (promote_rhel7.json.result == 'success'): 'dict object' has no attribute 'result'"}
Yeah, it's not defined because it's not a value that's returned when the API call is sent. I'm not sure there's a way to do what I'm trying to do with a loop.
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2ec91a91-ced2-4c58-9380-b343b6b3acf8%40googlegroups.com.
--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4a97a600-72be-40eb-a712-b637736978d6%40googlegroups.com.