community.general/lib/ansible
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
..
cli ansible-pull: allow specifying --diff from check_opts cli flag group (#37645) 2018-08-28 15:15:14 -04:00
compat Fix the local and ssh plugins for a cornercase retrying a syscall 2018-08-13 07:17:11 -07:00
config Fix another corner case of too many warnings for world readable current working directory 2018-08-23 20:23:59 -07:00
errors give hint to users when a file is not found 2018-04-10 17:19:03 -04:00
executor fix issue with no_log in py3 2018-08-27 11:57:02 -07:00
galaxy Fix invalid Dockerfile created by "galaxy init --type apb" (#42017) 2018-07-17 08:11:42 +05:30
inventory Error on empty group/host name (#42584) 2018-07-12 09:59:00 -04:00
module_utils New modules and updated HTTP API plugin for FTD devices (#44578) 2018-08-29 15:48:10 +02:00
modules Deprecates bigip_gtm_facts (#44841) 2018-08-29 08:45:39 -07:00
parsing Fix ansible-doc and docsite generation for removed modules 2018-08-24 15:37:13 -07:00
playbook Bump sudo/su deprecation to 2.9 (#44581) 2018-08-23 13:22:54 -05:00
plugins Scaleway inventory: allows to connect via private IP (#44342) 2018-08-29 12:14:12 -04:00
template Remove bare_deprecated functionality (#44517) 2018-08-23 11:31:16 -05:00
utils Properly documenting environment variables in documentation fragment. (#44812) 2018-08-29 11:30:20 +01:00
vars Don't use copy.deepcopy in high workload areas, use naive_deepcopy (#44337) 2018-08-20 15:08:29 -05:00
__init__.py
constants.py We can create a frozenset from a tuple 2018-08-13 15:21:44 -07:00
release.py Add post modifier to version 2018-08-27 23:18:38 -07:00