Establish clean homelab infrastructure baseline
Reorganize the brownfield repository, remove retired and generated artifacts, harden ignore rules, and record the GitOps/IaC redesign.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
---
|
||||
# Deploy on ONE node only -- see defaults for why one instance covers the cluster.
|
||||
|
||||
- name: Install the floppy UI
|
||||
ansible.builtin.copy:
|
||||
src: floppy-ui.py
|
||||
dest: /usr/local/bin/pve-floppy-ui
|
||||
mode: "0755"
|
||||
notify: Restart pve-floppy-ui
|
||||
|
||||
- name: Self-check the args parsing
|
||||
# The one piece of real logic in the app: it rewrites the `args` string of a
|
||||
# live VM, so a bad edit there corrupts a VM config. Cheap to assert, and it
|
||||
# also proves the node's python can run the file at all.
|
||||
ansible.builtin.command:
|
||||
cmd: /usr/local/bin/pve-floppy-ui --selftest
|
||||
changed_when: false
|
||||
|
||||
- name: Install the unit
|
||||
ansible.builtin.template:
|
||||
src: pve-floppy-ui.service.j2
|
||||
dest: /etc/systemd/system/pve-floppy-ui.service
|
||||
mode: "0644"
|
||||
notify: Restart pve-floppy-ui
|
||||
|
||||
- name: Enable and start it
|
||||
ansible.builtin.systemd_service:
|
||||
name: pve-floppy-ui
|
||||
state: started
|
||||
enabled: true
|
||||
daemon_reload: true
|
||||
Reference in New Issue
Block a user