Skip to content

Commit

Permalink
[apt_cacher_ng] No longer create NGINX webroot
Browse files Browse the repository at this point in the history
The NGINX server configuration provided by `debops.apt_cacher_ng` only
functions to set up proxies and a redirect, so no webroot is necessary.

(cherry picked from commit 0aac542)
(cherry picked from commit c708bf7)
  • Loading branch information
imrejonk authored and drybjed committed Jun 24, 2021
1 parent 1064c16 commit 43df7a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -38,6 +38,11 @@ Added
Fixed
~~~~~

:ref:`debops.apt_cacher_ng` role
''''''''''''''''''''''''''''''''

- The role no longer creates an unnecessary NGINX webroot directory.

:ref:`debops.kmod` role
'''''''''''''''''''''''

Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/apt_cacher_ng/defaults/main.yml
Expand Up @@ -571,6 +571,7 @@ apt_cacher_ng__nginx__servers:
enabled: True
allow: '{{ apt_cacher_ng__allow + apt_cacher_ng__group_allow + apt_cacher_ng__host_allow }}'
ssl: False
webroot_create: False
type: 'proxy'
proxy_pass: 'http://apt-cacher-ng'
proxy_options: |
Expand All @@ -591,6 +592,7 @@ apt_cacher_ng__nginx__servers:
allow: '{{ apt_cacher_ng__allow + apt_cacher_ng__group_allow + apt_cacher_ng__host_allow }}'
state: '{{ "present" if (ansible_local|d() and ansible_local.pki|d()) else "absent" }}'
listen: False
webroot_create: False
type: 'proxy'
proxy_pass: 'http://apt-cacher-ng'
proxy_options: |
Expand Down

0 comments on commit 43df7a1

Please sign in to comment.