Skip to content

Commit

Permalink
Update to AdGuard Home 0.107.53 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcook254 authored Oct 24, 2024
1 parent 65fbbee commit eac8347
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Installs AdGuardHome on Linux machines.

Versioning Policy
-----------------
Each minor version of this role is designed to be compatible with the corresponding patch release of `AdGuardHome`. For example, version `107.52.x` is compatible with `AdGuardHome` version `0.107.52`. This is due to breaking changes introduced in the settings file and allows for bug fix releases in the role between updates.
Each minor version of this role is designed to be compatible with the corresponding patch release of `AdGuardHome`. For example, version `107.53.x` is compatible with `AdGuardHome` version `0.107.53`. This is due to breaking changes introduced in the settings file and allows for bug fix releases in the role between updates.

Install
-------
Using ansible galaxy

`ansible-galaxy install bcook254.adguardhome>=107.52,<107.53`
`ansible-galaxy install bcook254.adguardhome>=107.53,<107.54`

Requirements
------------
Expand All @@ -24,7 +24,7 @@ Role Variables
--------------
A non-exhuastive list of available variables is listed below, along with their default vaules. For a list of variables available for the AdguardHome configuration file, please see `defaults/main.yml`.

adguardhome_version: 0.107.52
adguardhome_version: 0.107.53

The version of AdGuardHome to be installed.

Expand Down
5 changes: 4 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
adguardhome_version: 0.107.52
adguardhome_version: 0.107.53
adguardhome_user: adguardhome
adguardhome_group: adguardhome
adguardhome_daemon: adguardhome
Expand Down Expand Up @@ -77,6 +77,7 @@ adguardhome_safesearch_enabled: 'false'
adguardhome_safesearch:
bing: 'true'
duckduckgo: 'true'
ecosia: 'true'
google: 'true'
pixabay: 'true'
yandex: 'true'
Expand Down Expand Up @@ -168,3 +169,5 @@ adguardhome_upstream_mode: 'load_balance'
adguardhome_hostsfile_enabled: 'true'
adguardhome_querylog_dir_path: '""'
adguardhome_statistics_dir_log: '""'
adguardhome_safe_fs_patterns:
- /AdGuardHome/userfilters/*
2 changes: 1 addition & 1 deletion molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
chdir: /usr/local/bin
changed_when: false
register: __adguardhome_version
failed_when: __adguardhome_version is not search('0.107.52')
failed_when: __adguardhome_version is not search('0.107.53')

- name: Check if adguardhome.service is started
ansible.builtin.service:
Expand Down
4 changes: 2 additions & 2 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
dest: "{{ adguardhome_config_file }}"
owner: "{{ adguardhome_user }}"
group: "{{ adguardhome_group }}"
mode: 0644
mode: 0600
check_mode: true
register: __config_file_changes

Expand All @@ -24,7 +24,7 @@
dest: "{{ adguardhome_config_file }}"
owner: "{{ adguardhome_user }}"
group: "{{ adguardhome_group }}"
mode: 0644
mode: 0600
backup: true
when: __config_file_changes is changed # noqa: no-handler
notify: restart adguardhome
11 changes: 10 additions & 1 deletion templates/AdGuardHome.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ filtering:
enabled: {{ adguardhome_safesearch_enabled }}
bing: {{ adguardhome_safesearch.bing }}
duckduckgo: {{ adguardhome_safesearch.duckduckgo }}
ecosia: {{ adguardhome_safesearch.ecosia }}
google: {{ adguardhome_safesearch.google }}
pixabay: {{ adguardhome_safesearch.pixabay }}
yandex: {{ adguardhome_safesearch.yandex }}
Expand All @@ -285,6 +286,14 @@ filtering:
- domain: {{ rewrite.domain }}
answer: {{ rewrite.answer }}
{% endfor %}
{% endif %}
safe_fs_patterns:{% if adguardhome_safe_fs_patterns|length <= 0 %}
[]
{% else %}

{% for safe_fs_pattern in adguardhome_safe_fs_patterns %}
- {{ safe_fs_pattern }}
{% endfor %}
{% endif %}
safebrowsing_cache_size: {{ adguardhome_safebrowsing_cache_size }}
safesearch_cache_size: {{ adguardhome_safeseach_cache_size }}
Expand Down Expand Up @@ -364,4 +373,4 @@ os:
group: {{ adguardhome_os_group }}
user: {{ adguardhome_os_user }}
rlimit_nofile: {{ adguardhome_rlimit_nofile }}
schema_version: 28
schema_version: 29

0 comments on commit eac8347

Please sign in to comment.