Conf files should be named and linkes as .conf

This commit is contained in:
shell 2024-11-19 21:12:49 +01:00
parent 29683edf31
commit a50a2705ed
2 changed files with 6 additions and 6 deletions

View file

@ -113,11 +113,11 @@ apache_options: "-Indexes +FollowSymLinks"
The default values for the `AllowOverride` and `Options` directives for the `documentroot` directory of each vhost. A vhost can overwrite these values by specifying `allow_override` or `options`. The default values for the `AllowOverride` and `Options` directives for the `documentroot` directory of each vhost. A vhost can overwrite these values by specifying `allow_override` or `options`.
```yaml ```yaml
apache_confs_enabled: [] apache_conf_enabled: []
apache_confss_disabled: [] apache_conf_disabled: []
``` ```
Same as Apache mods. But this is for additional confs. The corresponding direcotry is `mods-available` inside the apache apache configuration directory. Same as Apache mods. But this is for additional confs. The corresponding direcotry is `conf-available` inside the apache apache configuration directory.
```yaml ```yaml
apache_mods_enabled: apache_mods_enabled:

View file

@ -27,8 +27,8 @@
- name: Enable Apache confs. - name: Enable Apache confs.
ansible.builtin.file: ansible.builtin.file:
src: "{{ apache_server_root }}/conf-available/{{ item }}.load" src: "{{ apache_server_root }}/conf-available/{{ item }}.conf"
dest: "{{ apache_server_root }}/conf-enabled/{{ item }}.load" dest: "{{ apache_server_root }}/conf-enabled/{{ item }}.conf"
state: link state: link
mode: "0644" mode: "0644"
with_items: "{{ apache_conf_enabled }}" with_items: "{{ apache_conf_enabled }}"
@ -36,7 +36,7 @@
- name: Disable Apache confs.. - name: Disable Apache confs..
ansible.builtin.file: ansible.builtin.file:
path: "{{ apache_server_root }}/conf-enabled/{{ item }}.load" path: "{{ apache_server_root }}/conf-enabled/{{ item }}.conf"
state: absent state: absent
with_items: "{{ apache_conf_disabled }}" with_items: "{{ apache_conf_disabled }}"
notify: restart apache notify: restart apache