Skip to content

Commit

Permalink
fix ansible lint: no-handler: Tasks that run when changed should like…
Browse files Browse the repository at this point in the history
…ly be handlers
  • Loading branch information
dangel101 committed Sep 28, 2022
1 parent b7a4b09 commit 3a9ad25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
failed_when: not uuid.stdout

- name: Add boot parameter to kernel parameters
ansible.builtin.set_fact:
ansible.builtin.set_fact: # noqa no-handler
host_deploy_kernel_cmdline_new: "boot=UUID={{ uuid.stdout }} {{ host_deploy_kernel_cmdline_new }}"
when: uuid.changed | bool
tags:
- skip_ansible_lint # E503

- name: Removing old kernel arguments
ansible.builtin.command: "grubby --update-kernel=ALL --remove-args '{{ host_deploy_kernel_cmdline_old }}'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,5 @@
register: ovn_packages

- name: Unconfigure the OVN chassis
ansible.builtin.command: vdsm-tool ovn-unconfigure
ansible.builtin.command: vdsm-tool ovn-unconfigure # noqa no-handler
when: not ovn_packages.changed
tags:
- skip_ansible_lint # E503

0 comments on commit 3a9ad25

Please sign in to comment.