Fix the name on all "name" tasks, but not name variables to pass ansible linting
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
loop: '{{ ensure_os_patch.package_list }}'
|
||||
loop_control:
|
||||
label: '{{ item.name }} will be {{ item.state }}'
|
||||
notify: [ensure_os_patch.package_facts, ensure_os_patch.service_facts]
|
||||
notify: [Ensure_Os_Patch.Package_Facts, Ensure_Os_Patch.Service_Facts]
|
||||
- name: Ensure Apt Patch
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
@@ -53,7 +53,7 @@
|
||||
autoremove: 'yes'
|
||||
update_cache: 'yes'
|
||||
upgrade: dist
|
||||
notify: [ensure_os_patch.package_facts, ensure_os_patch.service_facts]
|
||||
notify: [Ensure_Os_Patch.Package_Facts, Ensure_Os_Patch.Service_Facts]
|
||||
- name: Ensure Dnf
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
@@ -62,7 +62,7 @@
|
||||
name: '*'
|
||||
state: latest
|
||||
update_cache: 'yes'
|
||||
notify: [ensure_os_patch.package_facts, ensure_os_patch.service_facts]
|
||||
notify: [Ensure_Os_Patch.Package_Facts, Ensure_Os_Patch.Service_Facts]
|
||||
- name: Ensure Dnf5
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
@@ -71,7 +71,7 @@
|
||||
name: '*'
|
||||
state: latest
|
||||
update_cache: 'yes'
|
||||
notify: [ensure_os_patch.package_facts, ensure_os_patch.service_facts]
|
||||
notify: [Ensure_Os_Patch.Package_Facts, Ensure_Os_Patch.Service_Facts]
|
||||
- name: Ensure Services
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
@@ -85,6 +85,6 @@
|
||||
loop: '{{ ensure_os_patch.service_list }}'
|
||||
loop_control:
|
||||
label: '{{ item.name }} will be {{ item.state }}'
|
||||
notify: [ensure_os_patch.package_facts, ensure_os_patch.service_facts]
|
||||
notify: [Ensure_Os_Patch.Package_Facts, Ensure_Os_Patch.Service_Facts]
|
||||
- name: Flush Handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
Reference in New Issue
Block a user