Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ playbook.yml
hosts
/vars/
*.swp
/worktrees/
1 change: 1 addition & 0 deletions cadt/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ climate_apps_domains:
- api2.example.com
cadt_api_proxy: true
cadt_api_version: latest
cadt_apt_prerelease: false

# Path to the CADT API in the proxy - include leading and trailing slash
cadt_api_proxy_path: "/api/"
Expand Down
9 changes: 8 additions & 1 deletion cadt/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@
- 'vars'
tags: cadt

- name: Remove unused CADT repository
become: true
ansible.builtin.apt_repository:
repo: "deb [arch={{ cadt_repo_arch }} signed-by=/usr/share/keyrings/chia.gpg] https://repo.chia.net/{{ (cadt_apt_prerelease | bool) | ternary('cadt', 'cadt-test') }}/debian/ stable main"
state: absent
tags: cadt

- name: Add CADT Repository
become: true
ansible.builtin.apt_repository:
repo: deb [arch={{ cadt_repo_arch }} signed-by=/usr/share/keyrings/chia.gpg] https://repo.chia.net/cadt/debian/ stable main
repo: "deb [arch={{ cadt_repo_arch }} signed-by=/usr/share/keyrings/chia.gpg] https://repo.chia.net/{{ (cadt_apt_prerelease | bool) | ternary('cadt-test', 'cadt') }}/debian/ stable main"
update_cache: true
tags: cadt

Expand Down