homeserver/roles/mgrote.apt_manage_sources/tasks/pve.yml
mg d6b5e4f1d7 apt_manage_sources: templating (#549)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: #549
2023-07-05 15:30:24 +02:00

15 lines
432 B
YAML

---
- name: check if pve-no-subscription repo keys exists
become: true
stat:
path: "{{ manage_sources_proxmox_apt_repo_key_path }}"
register: pve_no_subscription_repo_keys
- name: add pve-no-subscription repo keys
become: yes
ansible.builtin.apt_key:
url: "{{ manage_sources_proxmox_apt_repo_key_url }}"
state: present
notify: update package lists
when: pve_no_subscription_repo_keys.stat.exists == false