From 855d8f3cd641a863c8374420145992aad88fd90b Mon Sep 17 00:00:00 2001 From: ehlert Date: Thu, 21 May 2020 14:54:13 -0700 Subject: [PATCH 1/2] store_uuid if set instance_name --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 65f121f..f70a7c3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -24,7 +24,7 @@ shell: | API_KEY='{{ nginx_controller_api_key }}' \ {{ (nginx_controller_hostname | length > 0) | ternary('CONTROLLER_HOSTNAME=' + nginx_controller_hostname,'') }} \ - {{ (nginx_controller_hostname | length > 0) | ternary('STORE_UUID=True','') }} \ + {{ (nginx_controller_hostname | length > 0) or (nginx_controller_instance_name | length > 0) | ternary('STORE_UUID=True','') }} \ sh ./install.sh -y \ {{ (nginx_controller_location | length > 0) | ternary('-l ' + nginx_controller_location,'') }} \ {{ (nginx_controller_instance_name | length > 0) | ternary('-i ' + nginx_controller_instance_name,'') }} From 28e2096b7a98fc10a5a320c7120e2de2b60cefd6 Mon Sep 17 00:00:00 2001 From: ehlert Date: Thu, 11 Jun 2020 11:54:19 -0700 Subject: [PATCH 2/2] no need to restart nginx --- tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index f70a7c3..3028d42 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,10 +37,10 @@ debug: var: nginx_controller_agent_install.stdout_lines -- name: Restart NGINX - service: - name: nginx - state: restarted +# - name: Restart NGINX +# service: +# name: nginx +# state: restarted - name: remove the install script file: