Skip to content

Commit

Permalink
ansible-lint tag "# noqa" does not work for blocks in blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed May 12, 2022
1 parent fd666a3 commit a396f2b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,18 @@
when:
- ansible_distribution_major_version == "6"

- name: configure 7
block:
- name: update all software (yum/7)
ansible.builtin.yum:
name: "*"
state: latest # noqa package-latest This role is to update packages.
notify:
- reboot
- name: update all software (yum/7)
ansible.builtin.yum:
name: "*"
state: latest # noqa package-latest This role is to update packages.
notify:
- reboot
when:
- ansible_distribution_major_version == "7"

- name: install yum-utils
ansible.builtin.package:
name: yum-utils
- name: install yum-utils
ansible.builtin.package:
name: yum-utils
when:
- ansible_distribution_major_version == "7"
when:
Expand Down

0 comments on commit a396f2b

Please sign in to comment.