Reorganize the brownfield repository, remove retired and generated artifacts, harden ignore rules, and record the GitOps/IaC redesign.
32 lines
942 B
YAML
32 lines
942 B
YAML
---
|
|
# 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
|