started tasks for proxmox
This commit is contained in:
2
host_vars/pve
Normal file
2
host_vars/pve
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
is_proxmox: true
|
||||
@@ -82,6 +82,24 @@
|
||||
- { service: "manufacturer", script: "/bin/cat /sys/devices/virtual/dmi/id/sys_vendor" }
|
||||
- { service: "serial", script: "/bin/cat /sys/devices/virtual/dmi/id/product_serial" }
|
||||
|
||||
- block:
|
||||
- name: server | snmpd | get proxmox script
|
||||
get_url:
|
||||
url: "https://raw.githubusercontent.com/librenms/librenms-agent/master/agent-local/proxmox"
|
||||
dest: "/usr/local/bin/proxmox"
|
||||
mode: "0755"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
- name: server | snmpd | configure proxmox extends
|
||||
lineinfile:
|
||||
path: "{{ snmpd_conf }}"
|
||||
state: present
|
||||
line: "extend proxmox {{ sudo }} /usr/local/bin/proxmox"
|
||||
insertafter: "# SECTION: custom settings"
|
||||
when:
|
||||
- is_proxmox is defined
|
||||
- is_proxmox == true
|
||||
|
||||
- name: server | snmpd start service
|
||||
service:
|
||||
name: "snmpd"
|
||||
|
||||
Reference in New Issue
Block a user