feat: add proxmox sources
This commit is contained in:
parent
6397364a6d
commit
0b20715fbd
2 changed files with 15 additions and 0 deletions
|
|
@ -18,6 +18,19 @@
|
||||||
- 'ansible_distribution_major_version <= "23"'
|
- 'ansible_distribution_major_version <= "23"'
|
||||||
notify: "apt force cache update"
|
notify: "apt force cache update"
|
||||||
|
|
||||||
|
# configure apt sources - proxmox list
|
||||||
|
- name: "apt - config - configure apt sources - proxmox list"
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: "templates/apt/sources.d/proxmox.list.j2"
|
||||||
|
dest: "/etc/apt/sources.list.d/proxmox.list"
|
||||||
|
owner: "root"
|
||||||
|
group: "root"
|
||||||
|
mode: "0644"
|
||||||
|
when:
|
||||||
|
- 'ansible_os_family == "Debian"'
|
||||||
|
- "inventory_hostname in group['proxmox']"
|
||||||
|
notify: "apt force cache update"
|
||||||
|
|
||||||
# configure apt sources
|
# configure apt sources
|
||||||
- name: "apt - config - configure apt sources"
|
- name: "apt - config - configure apt sources"
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
||||||
2
templates/apt/sources.d/proxmox.list.j2
Normal file
2
templates/apt/sources.d/proxmox.list.j2
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
# proxmox
|
||||||
|
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
|
||||||
Loading…
Add table
Add a link
Reference in a new issue