Fix Ansible-lint E303 (#6409)

This commit is contained in:
Maxime Guyot 2020-08-31 12:30:20 +02:00 committed by GitHub
parent 0665b45e61
commit 34d88ea6d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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