2017-05-21 11:00:46 +02:00
|
|
|
---
|
|
|
|
|
2017-06-15 10:20:35 +02:00
|
|
|
# - 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:
|
2017-07-19 08:56:46 +02:00
|
|
|
# - apt
|
2017-06-15 10:20:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
- name: Add Evolix GPG key
|
|
|
|
apt_key:
|
2017-08-23 02:50:17 +02:00
|
|
|
#url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x44975278B8612B5D
|
|
|
|
data: "{{ lookup('file', 'reg.gpg') }}"
|
2017-06-13 12:02:49 +02:00
|
|
|
|
2017-05-21 11:00:46 +02:00
|
|
|
- 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"
|
2017-10-31 15:50:25 +01:00
|
|
|
register: apt_evolix_public
|
2017-06-13 12:02:49 +02:00
|
|
|
tags:
|
2017-07-19 08:56:46 +02:00
|
|
|
- apt
|
2017-05-23 15:23:08 +02:00
|
|
|
|
2017-10-31 15:50:25 +01:00
|
|
|
- name: Apt update
|
|
|
|
apt:
|
|
|
|
update_cache: yes
|
|
|
|
when: apt_evolix_public | changed
|
2017-06-13 12:02:49 +02:00
|
|
|
tags:
|
2017-07-19 08:56:46 +02:00
|
|
|
- apt
|