@@ -0,0 +1,42 @@
|
||||
all:
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python3
|
||||
ansible_connection: ssh
|
||||
ansible_user: ansiblessh
|
||||
hosts:
|
||||
children:
|
||||
Windows:
|
||||
hosts:
|
||||
sampleWindowsHost:
|
||||
vars:
|
||||
ansible_user: "ansibleWin"
|
||||
ansible_password: {{ansibleWinPassword}}
|
||||
ansible_connection: winrm
|
||||
ansible_winrm_transport: credssp
|
||||
ansible_winrm_server_cert_validation: ignore
|
||||
Dropbear:
|
||||
vars:
|
||||
ansible_user: root
|
||||
Routers:
|
||||
hosts:
|
||||
sampleOpenWrtRouter:
|
||||
ansible_host: 192.168.1.1
|
||||
vars:
|
||||
ansible_user: root
|
||||
nopython:
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/false
|
||||
cloud:
|
||||
hosts:
|
||||
sampleCloudHost:
|
||||
ansible_host: sdsgfdaflhksh.online-server.cloud
|
||||
sampleCloudHost2:
|
||||
ansible_host: v6823468956489275648763.happysrv.de
|
||||
vars:
|
||||
ansible_user: ansiblessh
|
||||
ansible_port: 4444
|
||||
rundeckhost:
|
||||
hosts:
|
||||
rundeck:
|
||||
vars:
|
||||
ansible_connection: local
|
||||
@@ -0,0 +1,5 @@
|
||||
plugin: community.general.nmap
|
||||
strict: False
|
||||
address: 192.168.1.0/24
|
||||
sudo: yes
|
||||
cache: yes
|
||||
@@ -0,0 +1,9 @@
|
||||
plugin: community.general.proxmox
|
||||
url: https://yourproxmoxserver:8006
|
||||
user: api@pve
|
||||
token_id: apitoken
|
||||
token_secret: YOUR-API-TOKEN-SECRET-HERE
|
||||
want_facts: true
|
||||
want_proxmox_nodes_ansible_host: true
|
||||
#compose:
|
||||
# ansible_host: proxmox_ipconfig0.ip | default(proxmox_net0.ip) | ipaddr('address')
|
||||
@@ -0,0 +1,21 @@
|
||||
plugin: community.zabbix.zabbix_inventory
|
||||
server_url: http://yourzabbixserver/zabbix
|
||||
login_user: api
|
||||
login_password: YOUR-ZABBIX-API-PASSWORD-HERE
|
||||
host_zapi_query:
|
||||
selectApplications: ['name', 'applicationid']
|
||||
selectParentTemplates: ['name']
|
||||
selectGroups: ['name']
|
||||
validate_certs: false
|
||||
groups:
|
||||
zbx_enabled: zbx_status == "0"
|
||||
zbx_disabled: zbx_status == "1"
|
||||
Debian: "'ansible.Debian' in (zbx_groups | join)"
|
||||
zbx_Ansible: "'ansible' in (zbx_groups | join)"
|
||||
NoAnsible: "'ansible' not in (zbx_groups | join)"
|
||||
Dropbear: "'ansible.Dropbear' in (zbx_groups | join)"
|
||||
nopython: "'ansible.NoPython' in (zbx_groups | join)"
|
||||
Routers: "'ansible.Routers' in (zbx_groups | join)"
|
||||
MultiMedia: "'Multimedia' in (zbx_groups | join)"
|
||||
kodi: "'Kodi' in (zbx_groups | join)"
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
plugin: constructed
|
||||
strict: False
|
||||
|
||||
groups:
|
||||
Routers: "'router' in inventory_hostname"
|
||||
sandbox: "'sandbox' in inventory_hostname"
|
||||
nmap: "ports is defined"
|
||||
Dropbear: "'archerc7' in inventory_hostname"
|
||||
nopython: "'archerc7' in inventory_hostname"
|
||||
Servers: "'pve' in inventory_hostname"
|
||||
kodi: "'kodi' in inventory_hostname"
|
||||
Windows: "'win' in inventory_hostname"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user