From dcae029ce9ccdd1c8a75d5327f1dc8f36eb067b0 Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Tue, 13 Aug 2024 14:53:22 +0700 Subject: [PATCH] fix: fake latency is not affecting hp masternodes (#661) --- ansible/deploy.yml | 4 ++-- ansible/roles/add_fake_latency/tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/deploy.yml b/ansible/deploy.yml index 7f5aa1e2..f42db7b4 100644 --- a/ansible/deploy.yml +++ b/ansible/deploy.yml @@ -3,7 +3,7 @@ # Bootstrap - name: Remove latency on masternodes before deployment starts - hosts: masternodes + hosts: masternodes,hp_masternodes become: true roles: - remove_fake_latency @@ -294,7 +294,7 @@ - role: mn_protx_diff - name: Set up fake latency on masternodes - hosts: masternodes + hosts: hp_masternodes,masternodes become: true roles: - role: add_fake_latency diff --git a/ansible/roles/add_fake_latency/tasks/main.yml b/ansible/roles/add_fake_latency/tasks/main.yml index 9c65a022..bb70ce30 100644 --- a/ansible/roles/add_fake_latency/tasks/main.yml +++ b/ansible/roles/add_fake_latency/tasks/main.yml @@ -3,4 +3,4 @@ - name: Generate fake latency ansible.builtin.command: tc qdisc replace dev ens5 root netem delay {{ masternode_network_latency_max }}ms {{ masternode_network_latency_min }}ms 25% register: my_output - changed_when: my_output.rc != 0 + changed_when: my_output.rc == 0