fix(opnsense/xray): guard changed_when on rc == 0 and re-sync active instance
This commit is contained in:
1 parent
34c5ff1aac
commit
471fe23e45
1 file changed
+1
-1
@@ -44,7 +44,7 @@
|
|||||||
loglevel: "{{ xray_loglevel }}"
|
loglevel: "{{ xray_loglevel }}"
|
||||||
environment: "{{ xray_sync_env }}"
|
environment: "{{ xray_sync_env }}"
|
||||||
register: xray_sync_raw
|
register: xray_sync_raw
|
||||||
changed_when: (xray_sync_raw.stdout | from_json).changed
|
changed_when: xray_sync_raw.rc == 0 and ((xray_sync_raw.stdout | from_json).changed | default(false))
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
||||||
- name: Разобрать итог синхронизации подписок Xray
|
- name: Разобрать итог синхронизации подписок Xray
|
||||||
|
|||||||
Reference in new issue
Block a user