Skip to content
Snippets Groups Projects
Commit 2d64d3b9 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

branding: Split out Debian APT stuff

parent e7133c94
No related branches found
No related tags found
No related merge requests found
---
- name: ensure deployment of apt repository keys
copy:
src: "{{ item }}"
dest: "/etc/apt/trusted.gpg.d/{{ item|basename }}"
owner: root
group: root
mode: "0644"
loop: "{{ branding_apt_keys }}"
when: branding_apt_keys is defined
notify:
- update apt cache
tags:
- branding
- repos
- name: ensure apt https transport is available
apt:
name:
- apt-transport-https
- ca-certificates
state: present
loop: "{{ branding_apt_repos }}"
when:
- branding_apt_repos is defined
- item|truncate(5, True, '') == "https"
tags:
- branding
- repos
- name: ensure configuration of apt repositories
apt_repository:
repo: 'deb [arch=amd64] {{ item }}'
state: present
with_items: "{{ branding_apt_repos }}"
when: branding_apt_repos is defined
notify:
- update apt cache
tags:
- branding
- repos
......@@ -81,43 +81,5 @@
- branding
- tls
- name: ensure deployment of apt repository keys
copy:
src: "{{ item }}"
dest: "/etc/apt/trusted.gpg.d/{{ item|basename }}"
owner: root
group: root
mode: "0644"
loop: "{{ branding_apt_keys }}"
when: branding_apt_keys is defined
notify:
- update apt cache
tags:
- branding
- repos
- name: ensure apt https transport is available
apt:
name:
- apt-transport-https
- ca-certificates
state: present
loop: "{{ branding_apt_repos }}"
when:
- branding_apt_repos is defined
- item|truncate(5, True, '') == "https"
tags:
- branding
- repos
- name: ensure configuration of apt repositories
apt_repository:
repo: 'deb [arch=amd64] {{ item }}'
state: present
with_items: "{{ branding_apt_repos }}"
when: branding_apt_repos is defined
notify:
- update apt cache
tags:
- branding
- repos
- include_tasks: apt.yml
when: is_debian
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment