FQMN, ansible-lint

This commit is contained in:
Sven Velt 2025-04-11 18:18:36 +02:00
parent c7168ad468
commit f7b2228d01
3 changed files with 13 additions and 22 deletions

View file

@ -1,6 +1,6 @@
---
- name: 'Restart Apache2'
service:
ansible.builtin.service:
name: apache2
state: restarted

View file

@ -7,20 +7,11 @@ galaxy_info:
license: GPL-2.0-or-later
min_ansible_version: 2.9
min_ansible_version: '2.9'
platforms:
- Debian:
versions:
- 8
- 9
- 10
- 11
- name: Debian
- name: Ubuntu
versions:
- xenial
- bionic
- focal
galaxy_tags:
- apache

View file

@ -1,12 +1,12 @@
---
- name: Sanity checks
assert:
ansible.builtin.assert:
that:
- apache2_backend_mod_remoteip_proxy|default("")|ipaddr != False
- apache2_backend_mod_remoteip_proxy|default("")|ansible.utils.ipaddr != False
- name: 'Enable Apache2 module »remoteip«'
file:
ansible.builtin.file:
state: link
src: ../mods-available/remoteip.load
dest: /etc/apache2/mods-enabled/remoteip.load
@ -14,21 +14,21 @@
- name: 'Template »conf-available/remoteip.conf«'
template:
ansible.builtin.template:
src: etc/apache2/conf-available/remoteip.conf.j2
dest: "/etc/apache2/conf-available/{{ apache2_backend_mod_remoteip_configfile|default('remoteip.conf') }}"
dest: "/etc/apache2/conf-available/{{ apache2_backend_mod_remoteip_configfile | default('remoteip.conf') }}"
owner: root
group: root
mode: 0644
backup: yes
mode: "0644"
backup: true
notify: "Restart Apache2"
- name: 'Enable Apache2 config »remoteip«'
file:
ansible.builtin.file:
state: link
src: "../conf-available/{{ apache2_backend_mod_remoteip_configfile|default('remoteip.conf') }}"
dest: "/etc/apache2/conf-enabled/{{ apache2_backend_mod_remoteip_configfile|default('remoteip.conf') }}"
src: "../conf-available/{{ apache2_backend_mod_remoteip_configfile | default('remoteip.conf') }}"
dest: "/etc/apache2/conf-enabled/{{ apache2_backend_mod_remoteip_configfile | default('remoteip.conf') }}"
notify: "Restart Apache2"