pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: https://github.com/D3DeFi/ansible-yaml-alt-inventory

eet" href="https://github.githubassets.com/assets/code-9c9b8dc61e74.css" /> GitHub - D3DeFi/ansible-yaml-alt-inventory: Alternative inventory for Ansible using YAML
Skip to content

D3DeFi/ansible-yaml-alt-inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This project presents alternative way to define hosts in Ansible inventory. By default, you are assigning host to groups resulting in multiple occurences of that host. This can get messy if you are using a lot of groups and trying to keep up a record of which host has which groups.

Would you rather have a single definition of host and a list of groups assigned to it, maybe this dynamic inventory is for you.

Installation & Usage

  • Clone this project to your ansible controller host
  • Install required Python packages
pip install -r requirements.txt
  • Copy file yaml-inventory-loader.py into folder named inventory inside your Ansible project
  • Add following directive into ansible.cfg located inside your Ansible project (see examples/ in this repo):
[defaults]
inventory = inventory
  • Create YAML files inside inventory/ folder in your Ansible project (see examples/ in this repo). E.g. prod.yml:
dev01.example.com:
  groups: UK, proxy, apache-php
  ansible_port: 8998

dev[02:04].example.com:
  groups: UK, proxy, mysql
  ansible_port: 8999
  mylist:
    - item1
    - item2

About

Alternative inventory for Ansible using YAML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy