Compare commits

..

No commits in common. "9caedb36fd67dcb39bbad610643abfcb1dcd9504" and "6384b387c5c48b7dc1b1d1bb681225c8be793446" have entirely different histories.

7 changed files with 3 additions and 52 deletions

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
.direnv
.envrc

View File

@ -1,2 +0,0 @@
*
!.gitignore

View File

@ -1,33 +0,0 @@
---
- name: Deprovision cluster
hosts: localhost
gather_facts: no
tasks:
- community.general.proxmox_kvm:
api_host: "{{ proxmox_api_host }}"
api_user: "{{ lookup('env','PM_USER') }}"
api_password: "{{ lookup('env','PM_PASSWORD') }}"
name: "{{ item }}"
node: "{{ hostvars[item].node }}"
vmid: "{{ hostvars[item].id }}"
state: stopped
force: yes
timeout: 500
with_inventory_hostnames:
- primary
- control_plane
- workers
- community.general.proxmox_kvm:
api_host: "{{ proxmox_api_host }}"
api_user: "{{ lookup('env','PM_USER') }}"
api_password: "{{ lookup('env','PM_PASSWORD') }}"
name: "{{ item }}"
node: "{{ hostvars[item].node }}"
vmid: "{{ hostvars[item].id }}"
state: absent
force: yes
timeout: 500
with_inventory_hostnames:
- primary
- control_plane
- workers

View File

@ -1,7 +1,7 @@
all:
vars:
cp_fqdn: nc_cp.home.thejimnicholson.com
proxmox_api_host: pve.home.thejimnicholson.com
proxmox_api: pve.home.thejimnicholson.com
pdns_api: 10.0.96.30
pdns_dom: home.thejimnicholson.com
cloudinit_img: centos-8-cloudimg

View File

@ -73,7 +73,7 @@
disabled: false
body_format: json
headers:
'X-API-Key': "{{ lookup('env','PDNS_API_PW') }}"
'X-API-Key': '{{ lookup('env','PDNS_API_PW') }}'
return_content: yes
status_code:
- 200

View File

@ -1,7 +0,0 @@
---
airgap_install: false
airgap_opts: "INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_SKIP_SELINUX_RPM=true"
# Whether to use registry proxies or preload container images
airgap_method: "registry" # or "image"
# Location of airgap components (see https://rancher.com/docs/k3s/latest/en/installation/airgap/)
airgap_preseed_url: https://www.example.com/k3s_airgap/

View File

@ -21,9 +21,4 @@
name: NetworkManager
state: restarted
become: true
when: nm_update.changed
- name: Airgap optional tasks
block:
- debug:
msg: "Airgap tasks go here"
when: airgap_install
when: nm_update.changed