Fix the name on all "name" tasks, but not name variables to pass ansible linting
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
---
|
||||
# handlers file for ensure_log_rotation
|
||||
- name: Ensure_log_rotation.package_facts
|
||||
- name: Ensure_Log_Rotation.Package_Facts
|
||||
ansible.builtin.package_facts:
|
||||
- name: Ensure_log_rotation.service_facts
|
||||
- name: Ensure_Log_Rotation.Service_Facts
|
||||
ansible.builtin.service_facts:
|
||||
- name: Ensure_log_rotation.service_reload
|
||||
- name: Ensure_Log_Rotation.Service_Reload
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
- ansible_facts["service_mgr"] == 'systemd'
|
||||
- ensure_log_rotation is defined
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: 'yes'
|
||||
- name: Ensure_log_rotation.service_restart
|
||||
- name: Ensure_Log_Rotation.Service_Restart
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
- ensure_log_rotation is defined
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
loop_control:
|
||||
label: '{{ item.name }} will be {{ item.state }}'
|
||||
notify:
|
||||
- ensure_log_rotation.package_facts
|
||||
- ensure_log_rotation.service_facts
|
||||
- Ensure_Log_Rotation.Package_Facts
|
||||
- Ensure_Log_Rotation.Service_Facts
|
||||
- name: Ensure Configuration
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
@@ -71,10 +71,10 @@
|
||||
loop_control:
|
||||
label: '{{ item.dest }}'
|
||||
notify:
|
||||
- ensure_log_rotation.package_facts
|
||||
- ensure_log_rotation.service_facts
|
||||
- ensure_log_rotation.service_reload
|
||||
- ensure_log_rotation.service_restart
|
||||
- Ensure_Log_Rotation.Package_Facts
|
||||
- Ensure_Log_Rotation.Service_Facts
|
||||
- Ensure_Log_Rotation.Service_Reload
|
||||
- Ensure_Log_Rotation.Service_Restart
|
||||
- name: Ensure Services
|
||||
when:
|
||||
- ansible_facts["system"] == 'Linux'
|
||||
@@ -89,7 +89,7 @@
|
||||
loop_control:
|
||||
label: '{{ item.name }} will be {{ item.state }}'
|
||||
notify:
|
||||
- ensure_log_rotation.package_facts
|
||||
- ensure_log_rotation.service_facts
|
||||
- Ensure_Log_Rotation.Package_Facts
|
||||
- Ensure_Log_Rotation.Service_Facts
|
||||
- name: Flush Handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
Reference in New Issue
Block a user