Coder Social home page Coder Social logo

Comments (1)

Manuelraa avatar Manuelraa commented on September 23, 2024

Fixed

[user@rocky-dever example]$ find ./test/
./test/
./test/yaml_folder.yml
./test/folder_one
./test/folder_one/apache
./test/folder_one/apache/main.yml
./test/folder_one/haproxy
./test/folder_one/haproxy/main.yml
./test/folder_one/haproxy.yml
./test/folder_two
./test/folder_two/apache.yml
./test/folder_two/apache
./test/folder_two/apache/main.yml
./test/folder_two/haproxy
./test/folder_two/haproxy/main.yml
./test/folder_two/another_level
./test/folder_two/another_level/apache
./test/folder_two/another_level/apache/main.yml
[user@rocky-dever example]$ ansible-inventory --list -i ./test/yaml_folder.yml
{
    "__yaml_folder__folder_one_haproxy": {
        "hosts": [
            "folder_one-haproxy-haproxy1"
        ]
    },
    "__yaml_folder__folder_two_apache": {
        "hosts": [
            "folder_two-another_level-apache-apache1",
            "folder_two-apache-apache1"
        ]
    },
    "_meta": {
        "hostvars": {
            "folder_one-haproxy-haproxy1": {
                "haproxy_var": "haproxy"
            },
            "folder_two-another_level-apache-apache1": {
                "apache_var": "test"
            },
            "folder_two-apache-apache1": {
                "apache_var": "test"
            }
        }
    },
    "all": {
        "children": [
            "__yaml_folder__folder_one_haproxy",
            "__yaml_folder__folder_two_apache",
            "apache",
            "haproxy",
            "ungrouped"
        ]
    },
    "apache": {
        "hosts": [
            "folder_one-apache-apache1",
            "folder_two-another_level-apache-apache1",
            "folder_two-apache-apache1"
        ]
    },
    "haproxy": {
        "hosts": [
            "folder_one-haproxy-haproxy1",
            "folder_two-haproxy-haproxy1"
        ]
    }
}

from yaml_folder_inventory.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.