dotfiles/.ansible/roles/matrix_server/tasks/includes/repos.yaml

20 lines
421 B
YAML
Raw Normal View History

- name: includes/repos.yaml
tags:
- install
- repos
- matrix
block:
- name: "Apt repo: Import GPG key: {{ repo.name }}"
apt_key:
state: present
url: "{{ repo.key }}"
when: repo.key
become: true
- name: "Apt repo: Add repo: {{ repo.name }}"
apt_repository:
state: present
repo: "{{ repo.data }}"
update_cache: yes
become: true