fix(ger-nod-02): дожидаться Management Connected после рестарта netbird
ansible-ger-nod-02 / deploy (push) Successful in 25s
ansible-ger-nod-02 / deploy (push) Successful in 25s
This commit is contained in:
1 parent
c90a78e160
commit
83baec4bad
1 file changed
+9
@@ -36,6 +36,15 @@
|
|||||||
state: restarted
|
state: restarted
|
||||||
when: netbird_exit_sysctl is changed
|
when: netbird_exit_sysctl is changed
|
||||||
|
|
||||||
|
- name: Дождаться переподключения NetBird после перезапуска
|
||||||
|
ansible.builtin.command: netbird status
|
||||||
|
register: netbird_status_after_restart
|
||||||
|
changed_when: false
|
||||||
|
retries: 20
|
||||||
|
delay: 3
|
||||||
|
until: "'Management: Connected' in netbird_status_after_restart.stdout"
|
||||||
|
when: netbird_exit_sysctl is changed
|
||||||
|
|
||||||
- name: Установить jq для синхронизации Exit Node через API NetBird
|
- name: Установить jq для синхронизации Exit Node через API NetBird
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: jq
|
name: jq
|
||||||
|
|||||||
Reference in new issue
Block a user