2951f26ad1
These tasks occasionally fail in CI, causing jobs to fail. Change-Id: I89041a641d8cb66c7848fa9ae9264a51aa1e38c8
24 lines
453 B
YAML
24 lines
453 B
YAML
---
|
|
- name: Ensure keys directory exists
|
|
file:
|
|
path: "{{ apt_keys_path }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0755
|
|
state: directory
|
|
become: true
|
|
|
|
- name: Ensure keys exist
|
|
get_url:
|
|
url: "{{ item.url }}"
|
|
dest: "{{ apt_keys_path ~ '/' ~ item.filename | basename }}"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
loop: "{{ apt_keys }}"
|
|
become: true
|
|
register: result
|
|
until: result is successful
|
|
retries: 3
|
|
delay: 5
|