From 5e64ac8146efc3c57d585a253c82649c314954a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 7 Aug 2022 22:32:56 +0200 Subject: [PATCH] Proxmox inventory plugin configuration --- ansible.cfg | 2 +- inventory/01-fetch.proxmox.yml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 inventory/01-fetch.proxmox.yml diff --git a/ansible.cfg b/ansible.cfg index d6f782a..ae5541f 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -12,4 +12,4 @@ use_persistent_connections = true usetty = false [inventory] -enable_plugins = yaml +enable_plugins = community.general.proxmox, yaml diff --git a/inventory/01-fetch.proxmox.yml b/inventory/01-fetch.proxmox.yml new file mode 100644 index 0000000..fbe9c93 --- /dev/null +++ b/inventory/01-fetch.proxmox.yml @@ -0,0 +1,10 @@ +plugin: community.general.proxmox + +url: https://proxmox.example.org:8006 +validate_certs: false +user: test@pve +password: ... +want_facts: true +facts_prefix: proxmox__ +group_prefix: proxmox__ +want_proxmox_nodes_ansible_host: false