Skip to content

Commit

Permalink
[#188360028] Add deb822 repository tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
eifelmicha committed Oct 8, 2024
1 parent 0c2cc17 commit 3ea14cb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,22 @@
with_items: "{{ _ops_tools.apt_repos | default([]) }}"
register: new_ppas

- name: Add Deb822 Repo
ansible.builtin.deb822_repository:
name: "{{ item.name }}"
types: deb
uris: "{{ item.uris }}"
suites: "{{ item.suites }}"
components: "{{ item.components }}"
signed_by: "{{ item.signed_by }}"
when: item.name is defined
with_items: "{{ _ops_tools.deb822_repository | default([]) }}"
register: new_deb822

- name: Update APT Cache # noqa: no-handler
ansible.builtin.apt:
update_cache: yes
when: new_keys_by_url is changed or new_keys_by_id is changed or new_repos is changed or new_ppas is changed or new_credentials is changed
when: new_keys_by_url is changed or new_keys_by_id is changed or new_repos is changed or new_ppas is changed or new_deb822 is changed or new_credentials is changed

- name: Install Ops Tools
ansible.builtin.apt:
Expand Down

0 comments on commit 3ea14cb

Please sign in to comment.