Skip to content

Commit

Permalink
Conf files should be named and linkes as .conf
Browse files Browse the repository at this point in the history
  • Loading branch information
s-hell committed Nov 19, 2024
1 parent 29683ed commit a50a270
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions tasks/configure-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@

- 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 }}"
notify: restart apache

- 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
Expand Down

0 comments on commit a50a270

Please sign in to comment.