ansible/cloud
Lars Kellogg-Stedman 6672205f49 docker: permit empty or false pid
The `docker` Python module only accepts `None` or `'host'` as arguments.
This makes it difficult to conditionally set the `pid` attribute using
standard Ansible syntax.

This change converts any value that evaluates as boolean `False` to
`None`, which includes empty strings:

    pid:

As well as an explicit `false`:

    pid: false

This permits the following to work as intended:

    - hosts: localhost
      tasks:
      - name: starting container
        docker:
          docker_api_version: 1.18
          image: larsks/mini-httpd
          name: web
          pid: "{{ container_pid|default('') }}"

If `container_pid` is set to `host` somewhere, this will create a
Docker container with `pid=host`; otherwise, this will create a
container with normal isolated pid namespace.
2015-07-15 21:15:49 -04:00
..
amazon fixed minor doc issues 2015-07-14 16:55:21 -04:00
azure ensure password or ssh cert specified 2015-07-09 13:33:46 -04:00
digital_ocean Updating cloud modules with proper github author information 2015-06-15 14:41:22 -04:00
docker docker: permit empty or false pid 2015-07-15 21:15:49 -04:00
google Update choices and version_added for new gce.py param service_account_permissions 2015-06-23 13:16:28 -04:00
linode Updating cloud modules with proper github author information 2015-06-15 14:41:22 -04:00
openstack Merge pull request #1685 from j2sol/feature/os_subnet_ipv6 2015-07-09 14:10:56 -07:00
rackspace Fix some remaining rax asg idempotency checks 2015-06-18 13:12:50 -05:00
vmware fixed version added, reworded description a bit 2015-07-14 17:03:21 -04:00
__init__.py package files 2014-09-26 11:05:47 -04:00