mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-17 04:18:42 +00:00
* Add new facts module for determining whether the module is running inside a container or not. * Add containers to main network. * Fix running tests locally with newer docker. * Simplify setup_openssl to only install cryptography. * Add alias in network. * Make sure to upgrade cryptography to something more sensible on Ubuntu 16.04. * Don't jump through hoops for bridge. * Try to use other IPv4 nets. * Improve module docs.
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
---
|
|
####################################################################
|
|
# WARNING: These are designed specifically for Ansible tests #
|
|
# and should not be used as examples of how to write Ansible roles #
|
|
####################################################################
|
|
|
|
- name: Include OS-specific variables
|
|
include_vars: '{{ ansible_os_family }}.yml'
|
|
when: not ansible_os_family == "Darwin"
|
|
|
|
- name: Install cryptography (Python 3)
|
|
become: true
|
|
package:
|
|
name: '{{ cryptography_package_name_python3 }}'
|
|
when: ansible_os_family != 'Darwin' and ansible_python_version is version('3.0', '>=')
|
|
|
|
- name: Install cryptography (Python 2)
|
|
become: true
|
|
package:
|
|
name: '{{ cryptography_package_name }}'
|
|
when: ansible_os_family != 'Darwin' and ansible_python_version is version('3.0', '<')
|
|
|
|
- name: Install cryptography (Darwin, and potentially upgrade for other OSes)
|
|
become: true
|
|
pip:
|
|
name: cryptography>=1.3.0
|
|
extra_args: "-c {{ remote_constraints }}"
|
|
|
|
- name: Register cryptography version
|
|
command: "{{ ansible_python.executable }} -c 'import cryptography; print(cryptography.__version__)'"
|
|
register: cryptography_version
|