dotfiles/.ansible/roles/linux_desktop/tasks/includes/repos.yaml
2019-09-19 19:05:06 +01:00

19 lines
408 B
YAML

- name: includes/repos.yaml
tags:
- install
- repos
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