diff --git a/playbook.yaml b/playbook.yaml index abdfe9c..1de7b77 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -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 }}" diff --git a/tasks/proxmox/config.yaml b/tasks/proxmox/config.yaml new file mode 100644 index 0000000..28073cb --- /dev/null +++ b/tasks/proxmox/config.yaml @@ -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"'