homeserver/roles/mgrote_apt_manage_sources/tasks/pve.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

14 lines
444 B
YAML

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