Merge 30769e2096 into 9dea08abf1
This commit is contained in:
commit
1e98a57d00
|
|
@ -7,8 +7,30 @@
|
||||||
state: present
|
state: present
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: install molecule
|
- name: wrap pip module install
|
||||||
ansible.builtin.pip:
|
block:
|
||||||
name: molecule[ansible,docker,lint]
|
|
||||||
state: present
|
- name: Create temporary directory
|
||||||
extra_args: "{{ molecule_extra_args | default(omit) }}"
|
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