Skip to content

Commit

Permalink
TMP
Browse files Browse the repository at this point in the history
  • Loading branch information
eifelmicha committed Oct 8, 2024
1 parent 872c8a8 commit f4e4e3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
owner: root
group: root
when: item.credentials is defined
with_items: "{{ _ops_tools.apt_repos | default([]) }}"
with_items: "{{ _ops_tools.credentials | default([]) }}"
register: new_credentials

- name: Download APT keys
ansible.builtin.get_url:
url: "{{ item.key_url }}"
dest: "{{ item.key_file }}"
mode: 0644
when: item.key_url is defined
when: item.key_url is defined and item.key_file is defined
with_items: "{{ _ops_tools.apt_repos | default([]) }}"
register: new_keys_by_url

Expand Down Expand Up @@ -57,8 +57,8 @@
suites: "{{ item.suites }}"
components: "{{ item.components }}"
signed_by: "{{ item.signed_by }}"
when: item.deb822_repository is defined
with_items: "{{ _ops_tools.apt_repos | default([]) }}"
when: item.name is defined
with_items: "{{ _ops_tools.deb822_repository | default([]) }}"
register: new_deb822

- name: Update APT Cache # noqa: no-handler
Expand Down

0 comments on commit f4e4e3a

Please sign in to comment.