Fix ansible-lint E301 for commands fetching data (#6465)

This commit is contained in:
Maxime Guyot
2020-07-28 17:39:47 +02:00
committed by GitHub
parent 96a2b386f2
commit fe46349786
8 changed files with 34 additions and 17 deletions

View File

@@ -2,8 +2,9 @@
- name: Calico-rr | Pre-upgrade tasks
include_tasks: pre.yml
- name: Calico-rr | Fetch current node object # noqa 301
- name: Calico-rr | Fetch current node object
command: "{{ bin_dir }}/calicoctl.sh get node {{ inventory_hostname }} -ojson"
changed_when: false
register: calico_rr_node
until: calico_rr_node is succeeded
delay: "{{ retry_stagger | random + 3 }}"

View File

@@ -8,8 +8,9 @@
command: ip link del dummy0
when: dummy0.stat.exists
- name: reset | get remaining routes set by bird # noqa 301
- name: reset | get remaining routes set by bird
command: ip route show proto bird
changed_when: false
register: bird_routes
- name: reset | remove remaining routes set by bird # noqa 301