Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Commit f1680a9

Browse files
authored
35 updates (#7)
* store_uuid if set instance_name * no need to restart nginx
1 parent dc1b9d1 commit f1680a9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tasks/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
shell: |
2525
API_KEY='{{ nginx_controller_api_key }}' \
2626
{{ (nginx_controller_hostname | length > 0) | ternary('CONTROLLER_HOSTNAME=' + nginx_controller_hostname,'') }} \
27-
{{ (nginx_controller_hostname | length > 0) | ternary('STORE_UUID=True','') }} \
27+
{{ (nginx_controller_hostname | length > 0) or (nginx_controller_instance_name | length > 0) | ternary('STORE_UUID=True','') }} \
2828
sh ./install.sh -y \
2929
{{ (nginx_controller_location | length > 0) | ternary('-l ' + nginx_controller_location,'') }} \
3030
{{ (nginx_controller_instance_name | length > 0) | ternary('-i ' + nginx_controller_instance_name,'') }}
@@ -37,10 +37,10 @@
3737
debug:
3838
var: nginx_controller_agent_install.stdout_lines
3939

40-
- name: Restart NGINX
41-
service:
42-
name: nginx
43-
state: restarted
40+
# - name: Restart NGINX
41+
# service:
42+
# name: nginx
43+
# state: restarted
4444

4545
- name: remove the install script
4646
file:

0 commit comments

Comments
 (0)