mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Use FQCNs. (#1180)
This commit is contained in:
@@ -9,27 +9,27 @@
|
||||
####################################################################
|
||||
|
||||
- name: Include OS-specific variables
|
||||
include_vars: '{{ ansible_os_family }}.yml'
|
||||
ansible.builtin.include_vars: '{{ ansible_os_family }}.yml'
|
||||
when: not ansible_os_family == "Darwin"
|
||||
|
||||
- name: Install cryptography (Python 3)
|
||||
become: true
|
||||
package:
|
||||
ansible.builtin.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:
|
||||
ansible.builtin.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:
|
||||
ansible.builtin.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__)'"
|
||||
ansible.builtin.command: "{{ ansible_python.executable }} -c 'import cryptography; print(cryptography.__version__)'"
|
||||
register: cryptography_version
|
||||
|
||||
Reference in New Issue
Block a user