ansible-ffibk/roles/server-apt-repos/tasks/main.yml
2018-09-18 14:27:58 +02:00

22 lines
529 B
YAML

---
- name: ensure dirmngr and apt-transport-https are installed
package:
name: "{{ item }}"
state: present
loop:
- dirmngr
- apt-transport-https
- name: ensure apt key for freifunk-mwu is present
apt_key:
state: present
id: 83A70084
url: "http://repo.freifunk-mwu.de/83A70084.gpg.key"
- name: ensure needed apt repos are present
apt_repository:
state: present
repo: "{{ item.repo }}"
update_cache: "{{ item.update_cache }}"
filename: "{{ item.name }}"
loop: "{{ repos }}"