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' - name: 'Restart Apache2'
service: ansible.builtin.service:
name: apache2 name: apache2
state: restarted state: restarted

View file

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

View file

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