From 84c8c995312f8c9bd4dc2555c78cfd0bc4d27d24 Mon Sep 17 00:00:00 2001 From: Jakub Filipczak Date: Thu, 23 Sep 2021 12:31:58 +0200 Subject: [PATCH 1/2] Added a sleep after Tower deployment --- .../tower/config-ansible-tower-ocp/tasks/deploy_tower.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/ansible/tower/config-ansible-tower-ocp/tasks/deploy_tower.yml b/roles/ansible/tower/config-ansible-tower-ocp/tasks/deploy_tower.yml index c95aac5b..b27f9dbf 100644 --- a/roles/ansible/tower/config-ansible-tower-ocp/tasks/deploy_tower.yml +++ b/roles/ansible/tower/config-ansible-tower-ocp/tasks/deploy_tower.yml @@ -49,3 +49,7 @@ args: chdir: "{{ ansible_tower_dir }}" +- name: "Pausing for 5 minutes to let Tower settle down" + pause: + minutes: 5 + From 01dc9840401a3eeb6e2d3a466be923557e624f53 Mon Sep 17 00:00:00 2001 From: Jakub Filipczak Date: Thu, 23 Sep 2021 15:39:49 +0200 Subject: [PATCH 2/2] Added pause parameter --- roles/ansible/tower/config-ansible-tower-ocp/README.md | 1 + .../tower/config-ansible-tower-ocp/tasks/deploy_tower.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ansible/tower/config-ansible-tower-ocp/README.md b/roles/ansible/tower/config-ansible-tower-ocp/README.md index 1848e20c..2fdda772 100644 --- a/roles/ansible/tower/config-ansible-tower-ocp/README.md +++ b/roles/ansible/tower/config-ansible-tower-ocp/README.md @@ -24,6 +24,7 @@ The variables used to install Ansible Tower on OpenShift are outlined in the tab |ansible_tower_download_url|URL of Ansible Tower installer artifact repository|no|`https://releases.ansible.com/ansible-tower/setup_openshift/ansible-tower-openshift-setup-{{ ansible_tower_version }}.tar.gz`| |ansible_tower_version|Version of Ansible Tower Openshift installer|no|latest| |ansible_tower_remote_src|Is the Ansible Tower installer fetched from a remote source|no|true| +|ansible_tower_postdeployment_pause| Time in minutes for which role will wait for Tower to settle down after deployment|no|5| |ansible_tower.install.openshift.host|OpenShift API url|no|CRC on local host| |ansible_tower.install.openshift.project|Project where to deploy Tower|no|'tower'| |ansible_tower.install.openshift.user|User to login into openshift|no|"test"| diff --git a/roles/ansible/tower/config-ansible-tower-ocp/tasks/deploy_tower.yml b/roles/ansible/tower/config-ansible-tower-ocp/tasks/deploy_tower.yml index b27f9dbf..ffc6c0b7 100644 --- a/roles/ansible/tower/config-ansible-tower-ocp/tasks/deploy_tower.yml +++ b/roles/ansible/tower/config-ansible-tower-ocp/tasks/deploy_tower.yml @@ -51,5 +51,5 @@ - name: "Pausing for 5 minutes to let Tower settle down" pause: - minutes: 5 + minutes: "{{ ansible_tower_postdeployment_pause | default(5) }}"