From f4e4e3a20f49817d7554a6043d40e251242a9a29 Mon Sep 17 00:00:00 2001 From: Michael Schmitz Date: Tue, 8 Oct 2024 11:53:08 +0200 Subject: [PATCH] TMP --- tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 10d79a5..3ce0754 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -10,7 +10,7 @@ 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 @@ -18,7 +18,7 @@ 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 @@ -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