Skip to content

Commit

Permalink
Fix Ansible-lint E303 (kubernetes-sigs#6409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miouge1 authored and LuckySB committed Jan 12, 2021
1 parent a50c890 commit 6df9710
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions roles/kubernetes/preinstall/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
- Preinstall | reload kubelet
when: is_fedora_coreos

- name: Preinstall | reload NetworkManager # noqa 303
command: systemctl restart NetworkManager.service
- name: Preinstall | reload NetworkManager
service:
name: NetworkManager.service
state: restarted
when: is_fedora_coreos

- name: Preinstall | reload kubelet
Expand Down
3 changes: 2 additions & 1 deletion roles/kubernetes/preinstall/tasks/0040-set_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
changed_when: false
check_mode: no

- name: check systemd-resolved # noqa 303
- name: check systemd-resolved
# noqa 303 Should we use service_facts for this?
command: systemctl is-active systemd-resolved
register: systemd_resolved_enabled
failed_when: false
Expand Down
3 changes: 2 additions & 1 deletion roles/network_plugin/calico/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
mode: 0755
remote_src: yes

- name: Calico | Check if host has NetworkManager # noqa 303
- name: Calico | Check if host has NetworkManager
# noqa 303 Should we use service_facts for this?
command: systemctl show NetworkManager
register: nm_check
failed_when: false
Expand Down

0 comments on commit 6df9710

Please sign in to comment.