Files
ansible_samba_tasks/tasks/proxmox.yml
Jose d026ef8d1b refactor ♻️: Consolidate and update pkg list
Refactored package installation process by consolidating and updating the `pkg` list to improve efficiency and maintainability.
2025-12-16 18:35:57 +01:00

35 lines
853 B
YAML

- name: Setup Proxmox
hosts: proxmox
become: true
tasks:
- name: Ensure git is installed
ansible.builtin.apt:
pkg:
- git
- python3-proxmoxer
- lm-sensors
state: present
update_cache: yes
cache_valid_time: 3600
- name: Clone PVE-mods repository
ansible.builtin.git:
repo: "https://github.com/Meliox/PVE-mods.git"
dest: "/opt/PVE-mods"
version: "main"
update: yes
- name: Install pve-mod-gui-sensors.sh
ansible.builtin.copy:
src: "/opt/PVE-mods/pve-mod-gui-sensors.sh"
dest: "/usr/local/bin/pve-mod-gui-sensors.sh"
mode: "0755"
remote_src: yes
- name: Run script with predefined input
ansible.builtin.shell: |
printf "a\nC\nN\n2\n" | /usr/local/bin/pve-mod-gui-sensors.sh