feat: add proxmox config
This commit is contained in:
parent
ba6fd7b14f
commit
a19254a226
2 changed files with 29 additions and 0 deletions
|
|
@ -1,5 +1,18 @@
|
|||
---
|
||||
|
||||
# configure proxmox - all nodes
|
||||
- name: "configure proxmox - all nodes"
|
||||
hosts: "proxmox"
|
||||
become: true
|
||||
serial: 1
|
||||
tasks:
|
||||
|
||||
# configure proxmox cluster
|
||||
- name: "configure proxmox cluster nodes"
|
||||
tags: "configure-cluster"
|
||||
ansible.builtin.import_tasks: "tasks/proxmox/config.yaml"
|
||||
|
||||
|
||||
# update proxmox - first node
|
||||
- name: "update proxmox - first node"
|
||||
hosts: "{{ groups['proxmox'] | first }}"
|
||||
|
|
|
|||
16
tasks/proxmox/config.yaml
Normal file
16
tasks/proxmox/config.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
|
||||
# set pve-fake-subscription version
|
||||
- name: "set pve-fake-subscription version"
|
||||
ansible.builtin.set_fact:
|
||||
# renovate: datasource=github-releases depName=Jamesits/pve-fake-subscription versioning=pep440
|
||||
__pfs_version: "0.0.11"
|
||||
|
||||
# install pve-fake-subscription
|
||||
- name: "install - pve-fake-subscription"
|
||||
ansible.builtin.apt:
|
||||
deb:
|
||||
"https://github.com/Jamesits/pve-fake-subscription/releases/download/\
|
||||
v{{ __pfs_version }}/pve-fake-subscription_{{ __pfs_version }}+git-1_all.deb"
|
||||
state: "present"
|
||||
when: 'ansible_os_family == "Debian"'
|
||||
Loading…
Add table
Add a link
Reference in a new issue