Commit 0671f995 authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'EKbfh-master-patch-27077' into 'master'

Fix ansible changed_when

See merge request !5748
parents 04fbc4a2 8efe8fa6
Pipeline #33561 passed with stages
in 87 minutes and 30 seconds
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- name: check if nsqd running - name: check if nsqd running
command: pgrep -x nsqd -c command: pgrep -x nsqd -c
failed_when: "False" failed_when: "False"
changed_when: "False" changed_when: false
register: nsqd_running register: nsqd_running
check_mode: "False" check_mode: "False"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
uri: uri:
url: http://127.0.0.1:4151/ping url: http://127.0.0.1:4151/ping
register: nsqd_ping register: nsqd_ping
changed_when: "False" changed_when: false
failed_when: "False" failed_when: "False"
check_mode: "False" check_mode: "False"
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
url: "http://127.0.0.1:8500/v1/health/service/nsqd" url: "http://127.0.0.1:8500/v1/health/service/nsqd"
return_content: "True" return_content: "True"
register: consul_req register: consul_req
changed_when: "False" changed_when: false
check_mode: "False" check_mode: "False"
- name: fail if no nsqd found - name: fail if no nsqd found
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
url: "http://127.0.0.1:8500/v1/health/service/nsqdhttp" url: "http://127.0.0.1:8500/v1/health/service/nsqdhttp"
return_content: "True" return_content: "True"
register: consul_req register: consul_req
changed_when: "False" changed_when: false
check_mode: "False" check_mode: "False"
- name: fail if no nsqdhttp found - name: fail if no nsqdhttp found
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- name: check if nsqloopupd running - name: check if nsqloopupd running
command: pgrep -x nsqlookupd -c command: pgrep -x nsqlookupd -c
failed_when: "False" failed_when: "False"
changed_when: "False" changed_when: false
register: nsqlookupd_running register: nsqlookupd_running
check_mode: "False" check_mode: "False"
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
uri: uri:
url: http://127.0.0.1:4161/ping url: http://127.0.0.1:4161/ping
register: nsqlookupd_ping register: nsqlookupd_ping
changed_when: "False" changed_when: false
failed_when: "False" failed_when: "False"
check_mode: "False" check_mode: "False"
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
url: "http://127.0.0.1:8500/v1/health/service/nsqlookupd" url: "http://127.0.0.1:8500/v1/health/service/nsqlookupd"
return_content: "True" return_content: "True"
register: consul_req register: consul_req
changed_when: "False" changed_when: false
check_mode: "False" check_mode: "False"
- name: fail if no nsqlookupd found - name: fail if no nsqlookupd found
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
url: "http://127.0.0.1:8500/v1/health/service/nsqlookupdhttp" url: "http://127.0.0.1:8500/v1/health/service/nsqlookupdhttp"
return_content: "True" return_content: "True"
register: consul_req register: consul_req
changed_when: "False" changed_when: false
check_mode: "False" check_mode: "False"
- name: fail if no nsqlookupdhttp found - name: fail if no nsqlookupdhttp found
......
--- ---
- name: search for postgres master - name: search for postgres master
changed_when: "False" changed_when: false
add_host: add_host:
name: "{{ inventory_hostname }}" name: "{{ inventory_hostname }}"
groups: svc-postgres-master groups: svc-postgres-master
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
- config - config
- name: set postgres master fact - name: set postgres master fact
changed_when: "False" changed_when: false
set_fact: set_fact:
postgres_master: "{{ postgres_listen_address }}" postgres_master: "{{ postgres_listen_address }}"
postgres_master_node: "{{ groups['svc-postgres-master'][0] }}" postgres_master_node: "{{ groups['svc-postgres-master'][0] }}"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- name: check if postgres running - name: check if postgres running
command: pgrep -f postgres -c command: pgrep -f postgres -c
failed_when: "False" failed_when: "False"
changed_when: "False" changed_when: false
register: postgres_running register: postgres_running
check_mode: "False" check_mode: "False"
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
url: "http://127.0.0.1:8500/v1/health/service/postgres" url: "http://127.0.0.1:8500/v1/health/service/postgres"
return_content: "True" return_content: "True"
register: consul_req register: consul_req
changed_when: "False" changed_when: false
check_mode: "False" check_mode: "False"
- name: fail if no postgres found - name: fail if no postgres found
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment