ansible-roles/apt/tasks/evolix_public.yml
Jérémy Lecour 66ea07ec29
All checks were successful
continuous-integration/drone/push Build is passing
evolinux-base: copy GPG key instead of using apt-key
2021-05-01 16:50:38 +02:00

33 lines
657 B
YAML

---
# - name: Fail if distribution is not supported
# fail:
# msg: "Error: Evolix public repository is not compatble with 'Debian Stretch' yet."
# when: ansible_distribution_release == "stretch"
# tags:
# - apt
- name: Add Evolix GPG key
copy:
src: reg.gpg
dest: /etc/apt/trusted.gpg.d/reg.gpg
tags:
- apt
- name: Evolix public list is installed
template:
src: evolix_public.list.j2
dest: /etc/apt/sources.list.d/evolix_public.list
force: yes
mode: "0640"
register: apt_evolix_public
tags:
- apt
- name: Apt update
apt:
update_cache: yes
when: apt_evolix_public is changed
tags:
- apt