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`.
```yaml
apache_confs_enabled: []
apache_confss_disabled: []
apache_conf_enabled: []
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
apache_mods_enabled:

View file

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