🚨 roles: apache: Fix fqcn linter warnings
fqcn[action-core]: Use FQCN for builtin module actions (service). roles/apache/handlers/main.yml:3 Use `ansible.builtin.service` or `ansible.legacy.service` instead. fqcn[action-core]: Use FQCN for builtin module actions (apt). roles/apache/tasks/main.yml:2 Use `ansible.builtin.apt` or `ansible.legacy.apt` instead. fqcn[action]: Use FQCN for module actions, such `community.general.apache2_module`. roles/apache/tasks/main.yml:8 Action `apache2_module` is not FQCN.
This commit is contained in:
parent
8b54b36392
commit
bec6fc20b7
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# Handlers for role apache
|
||||
---
|
||||
- name: Restart apache2
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: apache2
|
||||
state: restarted
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- name: Ensure Apache2 and modules are installed and up to date
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- apache2
|
||||
state: present
|
||||
|
||||
- name: Ensure necessary modules are enabled
|
||||
apache2_module:
|
||||
community.general.apache2_module:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
|
|
Loading…
Add table
Reference in a new issue