community.general/lib/ansible/plugins/inventory
Pilou c07ba82d3e Scaleway inventory: allows to connect via private IP (#44342)
* scaleway inventory: remove useless duplicate

* scaleway inventory: allows to connect using private ip

ansible_host was hardcoded and it was not possible to connect using
private addresses.
This allows to define multiple host variables, values are templates
which can use hosts details send by API. For example this config file
use private address and defines two variables:

    plugin: scaleway
    hostnames:
      - hostname
    variables:
      ansible_host: private_ip
      state: state
      image: image.name
    regions:
      - ams1

inventory will looks like:

    {
        "_meta": {
            "hostvars": {
                "testhost": {
                    "ansible_host": "10.1.1.1",
                    "arch": "x86_64",
                    "commercial_type": "START1-M",
                    "hostname": "testhost",
                    "id": "af669464-0c74-4c89-8573-9fe763028448",
                    "image": "CentOS 7.4",
                    "organization": "2cc9a115-380d-4ac0-ba4b-8947eee71325",
                    "public_ipv4": "163.172.1.1",
                    "public_ipv6": "2001:bc8::1",
                    "state": "running",
                    "tags": [
                        "testtag"
                    ]
                }
            }
        },
        [...]
    }
2018-08-29 12:14:12 -04:00
..
__init__.py VMware: Dynamic Inventory plugin (#37456) 2018-07-27 15:38:19 +05:30
advanced_host_list.py Fix python3 and nonascii handling in inventory plugins 2017-09-20 19:39:15 -07:00
auto.py make doc templates not case sensitive for the default value (#41158) 2018-08-13 16:47:12 -04:00
aws_ec2.py Misc typo fixes in function docs (#43779) 2018-08-07 20:13:51 +02:00
aws_rds.py RDS inventory plugin (#41919) 2018-08-23 19:42:32 -04:00
constructed.py Misc typo fixes in function docs (#43779) 2018-08-07 20:13:51 +02:00
foreman.py Add some requirements to the plugin docstrings. 2018-08-02 00:10:48 -04:00
gcp_compute.py added required missing field for common yaml fmt 2018-07-09 11:43:21 -04:00
generator.py Misc typo fixes in function docs (#43779) 2018-08-07 20:13:51 +02:00
host_list.py Fix python3 and nonascii handling in inventory plugins 2017-09-20 19:39:15 -07:00
ini.py avoid caching invetnory sources in loader (#38242) 2018-04-10 22:15:52 -04:00
k8s.py Fix author name in the documentation 2018-07-24 12:01:37 -04:00
nmap.py Fix example of nmap plugin (#42925) 2018-07-18 10:07:21 -04:00
openshift.py Fix author name in the documentation 2018-07-24 12:01:37 -04:00
openstack.py Fix openstack inventory plugin for API changes (#43580) 2018-08-17 07:03:08 -04:00
scaleway.py Scaleway inventory: allows to connect via private IP (#44342) 2018-08-29 12:14:12 -04:00
script.py Fix setting required options for inventory plugins (#42049) 2018-06-29 11:48:35 -04:00
tower.py Added Ansible Tower inventory plugin. (#41816) 2018-08-21 14:41:26 -04:00
virtualbox.py added required missing field for common yaml fmt 2018-07-09 11:43:21 -04:00
vmware_vm_inventory.py VMware: Dynamic Inventory plugin (#37456) 2018-07-27 15:38:19 +05:30
vultr.py inventory/vultr: Few minor improvements (#44622) 2018-08-24 15:35:29 +02:00
yaml.py Fix setting required options for inventory plugins (#42049) 2018-06-29 11:48:35 -04:00