Replace github by own git instance

This commit is contained in:
Dryusdan 2024-02-26 14:39:26 +01:00
parent 70c7336192
commit e36ccd1b41
3 changed files with 5 additions and 4 deletions

View file

@ -13,3 +13,4 @@ coredns_zone_files_paths:
coredns_key_files_paths:
- "coredns/keys/*"

View file

@ -31,8 +31,8 @@
- name: Download coredns binary to local folder
become: false
get_url:
url: "https://github.com/coredns/coredns/releases/download/v{{ coredns_version }}/coredns_{{ coredns_version }}_linux_{{ go_arch }}.tgz"
dest: "/tmp/coredns_{{ coredns_version }}_linux_{{ go_arch }}.tgz"
url: "https://git.dryusdan.fr/Dryusdan/CoreDNS-netbox/releases/download/v{{ coredns_version }}/coredns"
dest: "/tmp/coredns"
checksum: "sha256:{{ coredns_checksum }}"
register: _download_binary
until: _download_binary is succeeded

View file

@ -14,8 +14,8 @@
that: coredns_config_file != ""
msg: "variable coredns_config_file cannot be empty"
- name: "Get checksum for {{ go_arch }} architecture"
- name: "Get checksum"
set_fact:
coredns_checksum: "{{ lookup('url', 'https://github.com/coredns/coredns/releases/download/v' + coredns_version + '/coredns_' + coredns_version + '_linux_' + go_arch + '.tgz.sha256').split(' ')[0] }}"
coredns_checksum: "{{ lookup('url', 'https://git.dryusdan.fr/Dryusdan/CoreDNS-netbox/releases/download/v' + coredns_version + '/coredns.sha256').split(' ')[0] }}"
run_once: true
when: coredns_binary_local_dir | length == 0