Browse Source

Merge pull request #2677 from woopstar/bootstrap-fix-1

Properly check need_pip, always run pip to check if needed
pull/2682/merge
Andreas Krüger 6 years ago
committed by GitHub
parent
commit
9707aa8091
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions
  1. 9
      roles/bootstrap-os/tasks/bootstrap-coreos.yml

9
roles/bootstrap-os/tasks/bootstrap-coreos.yml

@ -22,7 +22,6 @@
failed_when: false
changed_when: false
check_mode: no
when: need_bootstrap.rc != 0
tags:
- facts
@ -30,24 +29,24 @@
copy:
src: get-pip.py
dest: ~/get-pip.py
when: need_pip != 0
when: need_pip.rc != 0
- name: Bootstrap | Install pip
shell: "{{ansible_python_interpreter}} ~/get-pip.py"
when: need_pip != 0
when: need_pip.rc != 0
- name: Bootstrap | Remove get-pip.py
file:
path: ~/get-pip.py
state: absent
when: need_pip != 0
when: need_pip.rc != 0
- name: Bootstrap | Install pip launcher
copy:
src: runner
dest: /opt/bin/pip
mode: 0755
when: need_pip != 0
when: need_pip.rc != 0
- name: Install required python modules
pip:

Loading…
Cancel
Save