- Add .gitignore: exclude compiled binaries, build artifacts, and Helm values files containing real secrets (authentik, prometheus) - Add all Kubernetes deployment manifests (deployment/) - Add services source code: ha-sync, device-inventory, games-console, paperclip, parts-inventory - Add Ansible orchestration: playbooks, roles, inventory, cloud-init - Add hardware specs, execution plans, scripts, HOMELAB.md - Add skills/homelab/SKILL.md + skills/install.sh to preserve Copilot skill - Remove previously-tracked inventory-cli binary from git index Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
---
|
|
- name: Install runtime dependencies
|
|
ansible.builtin.apt:
|
|
name:
|
|
- dmidecode
|
|
- iproute2
|
|
- util-linux
|
|
- pciutils
|
|
- libstdc++6
|
|
state: present
|
|
update_cache: true
|
|
when: ansible_os_family == "Debian"
|
|
ignore_errors: true # Proxmox enterprise repo fails apt-update without a subscription
|
|
|
|
- name: Remove old inventory-cli binary
|
|
ansible.builtin.file:
|
|
path: /usr/local/bin/inventory-cli
|
|
state: absent
|
|
|
|
- name: Install device-inventory binary
|
|
ansible.builtin.copy:
|
|
src: device-inventory
|
|
dest: "{{ inventory_cli_binary_dest }}"
|
|
owner: root
|
|
group: root
|
|
mode: "0755"
|
|
|
|
- name: Install discovery wrapper script
|
|
ansible.builtin.template:
|
|
src: inventory-cli-discover.sh.j2
|
|
dest: "{{ inventory_cli_script_dest }}"
|
|
owner: root
|
|
group: root
|
|
mode: "0755"
|
|
notify: Run inventory-cli discover now
|
|
|
|
- name: Install systemd service unit
|
|
ansible.builtin.template:
|
|
src: inventory-cli-discover.service.j2
|
|
dest: /etc/systemd/system/inventory-cli-discover.service
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: Reload systemd
|
|
|
|
- name: Install systemd timer unit
|
|
ansible.builtin.template:
|
|
src: inventory-cli-discover.timer.j2
|
|
dest: /etc/systemd/system/inventory-cli-discover.timer
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: Reload systemd
|
|
|
|
- name: Ensure timer is enabled and started
|
|
ansible.builtin.systemd:
|
|
name: inventory-cli-discover.timer
|
|
daemon_reload: true
|
|
enabled: true
|
|
state: started
|