I tested that just now.  It doesn't work. The API doesn't send a response 
about the status of the promote task.  When I make the call to promote, it 
immediately responds with info that it started, and that's all.  So the 
solution Kai provided really just keeps sending the same API request using 
the same loop item, because it never gets a response back from the API 
about result.

root@tower /etc/ansible/playbooks $ ansible-playbook test.yml

PLAY [localhost] 
********************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] 
**************************************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [Promote new RHEL7 version to Lifecycle Environments] 
**************************************************************************************************************************************************************************************
FAILED - RETRYING: Promote new RHEL7 version to Lifecycle Environments (10 
retries left).
FAILED - RETRYING: Promote new RHEL7 version to Lifecycle Environments (9 
retries left).
FAILED - RETRYING: Promote new RHEL7 version to Lifecycle Environments (8 
retries left).
FAILED - RETRYING: Promote new RHEL7 version to Lifecycle Environments (7 
retries left).
FAILED - RETRYING: Promote new RHEL7 version to Lifecycle Environments (6 
retries left).
FAILED - RETRYING: Promote new RHEL7 version to Lifecycle Environments (5 
retries left).
FAILED - RETRYING: Promote new RHEL7 version to Lifecycle Environments (4 
retries left).
FAILED - RETRYING: Promote new RHEL7 version to Lifecycle Environments (3 
retries left).


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4a97a600-72be-40eb-a712-b637736978d6%40googlegroups.com.

Reply via email to