ansible-roles/apt/tasks/evolix_public.oneline.yml

46 lines
907 B
YAML
Raw Normal View History

2017-05-21 11:00:46 +02:00
---
- name: Look for legacy apt keyring
ansible.builtin.stat:
path: /etc/apt/trusted.gpg
register: _trusted_gpg_keyring
tags:
- apt
2021-05-06 11:33:19 +02:00
- name: Evolix embedded GPG key is absent
ansible.builtin.apt_key:
id: "B8612B5D"
keyring: /etc/apt/trusted.gpg
state: absent
tags:
- apt
2023-03-17 20:05:42 +01:00
when: _trusted_gpg_keyring.stat.exists
- name: Add Evolix GPG key
ansible.builtin.copy:
src: pub_evolix.asc
dest: "{{ apt_keyring_dir }}/pub_evolix.asc"
force: yes
2021-05-02 00:34:19 +02:00
mode: "0644"
2021-05-26 13:47:34 +02:00
owner: root
group: root
2019-06-21 10:18:54 +02:00
tags:
- apt
2017-05-21 11:00:46 +02:00
- name: Evolix public list is installed
ansible.builtin.template:
2017-05-21 11:00:46 +02:00
src: evolix_public.list.j2
dest: /etc/apt/sources.list.d/evolix_public.list
force: yes
mode: "0640"
register: apt_evolix_public
tags:
2019-06-21 10:18:54 +02:00
- apt
- name: Apt update
ansible.builtin.apt:
update_cache: yes
tags:
2019-06-21 10:18:54 +02:00
- apt
2023-03-17 20:05:42 +01:00
when: apt_evolix_public is changed