Merge branch 'master' of ssh://gitlab.social.my-wan.de:22422/rene/ansible-pull
This commit is contained in:
2
host_vars/pve
Normal file
2
host_vars/pve
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
is_proxmox: true
|
||||
3
hosts
3
hosts
@@ -4,6 +4,9 @@ VM-debian11-template
|
||||
[cluster:children]
|
||||
glustertest
|
||||
|
||||
[server]
|
||||
pve
|
||||
|
||||
[server:children]
|
||||
cluster
|
||||
database
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
state: latest
|
||||
name:
|
||||
- curl
|
||||
- dmidecode
|
||||
- htop
|
||||
- iftop
|
||||
- iotop
|
||||
@@ -12,6 +13,7 @@
|
||||
- neofetch
|
||||
- net-tools
|
||||
- "{{ nfs_client_package }}"
|
||||
- python3-netaddr
|
||||
- ranger
|
||||
- rsync
|
||||
- tmux
|
||||
@@ -21,7 +23,6 @@
|
||||
- vim-python-jedi
|
||||
- wget
|
||||
- unattended-upgrades
|
||||
- python3-netaddr
|
||||
|
||||
- name: system setup | utilities | install cloud-init and gemu guest agent
|
||||
tags: packages,system,system setup
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
|
||||
- name: server | snmpd | copy distro script
|
||||
copy:
|
||||
dest: "/etc/snmp/distro/"
|
||||
dest: "/etc/snmp/distro"
|
||||
src: "distro"
|
||||
mode: "0755"
|
||||
|
||||
@@ -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