mirror of
https://github.com/jimeh/ansible-adguardhome.git
synced 2026-02-19 07:06:38 +00:00
feat(install): Support using GitHub token when fetching latest release
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
# release via GitHub API.
|
||||
adguardhome_version: "latest"
|
||||
|
||||
# When desired version is "latest", use GITHUB_TOKEN environment variable when
|
||||
# looking up the latest release via GitHub's API. If you get rate limit errors
|
||||
# from GitHub's API, turni this on and set the GITHUB_TOKEN environment variable
|
||||
# to a Personal Access Token with "repo" and "user" scopes.
|
||||
adguardhome_use_github_token: false
|
||||
|
||||
# User to run AdGuard Home under. Must initially be "root" if no conig file is
|
||||
# on disk. After going through the setup wizard, or manually adding a config
|
||||
# file, this can be set to something else, like "adguard" for example.
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
action: latest_release
|
||||
user: AdguardTeam
|
||||
repo: Adguardhome
|
||||
token: "{% if adguardhome_use_github_token %}{{ lookup('env', 'GITHUB_TOKEN') }}{% endif %}"
|
||||
register: adguardhome_latest_release
|
||||
|
||||
- name: Set desired version to version of latest release
|
||||
|
||||
Reference in New Issue
Block a user