32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
---
|
|
|
|
- name: Ensure apt-transport-https is installed.
|
|
apt: name=apt-transport-https state=latest update_cache=yes
|
|
|
|
- name: Ensure Dual Inventive apt key is present
|
|
apt_key:
|
|
data: "{{ lookup('file', 'sign.key') }}"
|
|
state: present
|
|
|
|
- name: Remove old Dual Inventive apt key
|
|
apt_key:
|
|
state: absent
|
|
id: 03FB1A9B
|
|
|
|
- name: Remove the old Dual Inventive repository
|
|
apt_repository:
|
|
repo: "deb [arch=amd64] http://src.dualinventive.com/deb di {{ di_apt_repository_stage }}"
|
|
state: absent
|
|
|
|
- name: Ensure Dual Inventive repository is present for jessie
|
|
apt_repository:
|
|
repo: "deb [arch=amd64] https://apt.dualinventive.com/deb di {{ di_apt_repository_stage }}"
|
|
state: present
|
|
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'jessie'
|
|
|
|
- name: Ensure Dual Inventive repository is present for stretch
|
|
apt_repository:
|
|
repo: "deb [arch=amd64] https://apt.dualinventive.com/deb {{ ansible_distribution_release }} {{ di_apt_repository_stage }}"
|
|
state: present
|
|
when: ansible_distribution == 'Debian' and ansible_distribution_release == 'stretch'
|