Inventory scripts for LXC
Find a file
2024-09-20 09:49:47 +02:00
.gitignore Inital commit 2024-09-20 09:48:55 +02:00
inventory_lxc.py Fix LXC without group error 2024-09-20 09:49:47 +02:00
inventory_lxc_ip.py Fix LXC without group error 2024-09-20 09:49:47 +02:00
README.md Inital commit 2024-09-20 09:48:55 +02:00

Inventory scripts for Ansible: LXC

Dependencies

  • lxc Python module

Usage

% ansible-inventory --graph -i inventory_lxc_ip.py
% ansible-inventory --graph -i inventory_lxc.py

Connection

  • inventory_lxc.py uses ansible_connection=lxc
  • inventory_lxc_ip.py uses first IPv4 reported by LXC

Author Information

Sven Velt - sven-ansiblerole@velt.biz https://git.velt.biz/velt.biz/