diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-08-18 19:25:20 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-08-18 19:25:20 +0200 |
commit | f0803cb1b11ac5f4c8bd30d0dea8ceccb7a72602 (patch) | |
tree | 4d50f0e501cc6b40624d53334a25787d9988b326 /ansible/roles/apt-repos/tasks/main.yml | |
parent | 727378b175aadbf2515e112c25b806cab78a0e78 (diff) | |
download | infra-f0803cb1b11ac5f4c8bd30d0dea8ceccb7a72602.tar.gz infra-f0803cb1b11ac5f4c8bd30d0dea8ceccb7a72602.tar.bz2 infra-f0803cb1b11ac5f4c8bd30d0dea8ceccb7a72602.tar.xz infra-f0803cb1b11ac5f4c8bd30d0dea8ceccb7a72602.zip |
apt-repos
Diffstat (limited to 'ansible/roles/apt-repos/tasks/main.yml')
-rw-r--r-- | ansible/roles/apt-repos/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/apt-repos/tasks/main.yml b/ansible/roles/apt-repos/tasks/main.yml index 2789073..96ffd7d 100644 --- a/ansible/roles/apt-repos/tasks/main.yml +++ b/ansible/roles/apt-repos/tasks/main.yml @@ -1,4 +1,17 @@ - with_dict: "{{ apt_repos if apt_repos is defined else {} }}" + name: apt-key adv --recv-keys + shell: apt-key adv --recv-keys {{ item.value.key_id|default("") }} + become: yes +# debug: +# msg: apt-key adv --recv-keys {{ item.value.key_id|default("") }} + vars: + state: "{{ item.value.state | default('present') }}" + when: + - apt_repos_refresh_keys | default(false) + - item.value.key_id + ignore_errors: true + +- with_dict: "{{ apt_repos if apt_repos is defined else {} }}" include_tasks: repo.yml vars: state: "{{ item.value.state | default('present') }}" |