fix idempotency for command

This commit is contained in:
Robert Kaussow 2018-11-27 23:07:17 +01:00
parent 09c6402af2
commit 4540c0b5c0
1 changed files with 6 additions and 0 deletions

View File

@ -7,8 +7,14 @@
with_items:
- python36
- name: Check for installed pip3
stat:
path: /usr/local/bin/pip3.6
register: __python3_pip
- name: Setup pip3
command: /bin/python3.6 -m ensurepip
changed_when: __python3_pip.stat.exists
- name: Link binaries to '__python3_link_bin_path'
file: