Merge 30769e2096 into 9dea08abf1
This commit is contained in:
commit
1e98a57d00
|
|
@ -7,8 +7,30 @@
|
|||
state: present
|
||||
become: yes
|
||||
|
||||
- name: install molecule
|
||||
ansible.builtin.pip:
|
||||
name: molecule[ansible,docker,lint]
|
||||
state: present
|
||||
extra_args: "{{ molecule_extra_args | default(omit) }}"
|
||||
- name: wrap pip module install
|
||||
block:
|
||||
|
||||
- name: Create temporary directory
|
||||
ansible.builtin.tempfile:
|
||||
path: '~'
|
||||
state: directory
|
||||
suffix: tmp
|
||||
register: tmp_directory
|
||||
changed_when: no
|
||||
|
||||
- name: install molecule
|
||||
ansible.builtin.pip:
|
||||
name: molecule[ansible,docker,lint]
|
||||
state: present
|
||||
extra_args: "{{ molecule_extra_args | default(omit) }}"
|
||||
environment:
|
||||
TMPDIR: "{{ tmp_directory.path }}"
|
||||
|
||||
always:
|
||||
|
||||
- name: Remove the temporary directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ tmp_directory.path }}"
|
||||
state: absent
|
||||
when: tmp_directory.path is defined
|
||||
changed_when: no
|
||||
|
|
|
|||
Loading…
Reference in New Issue