The Ansible pip module seems to prefer pip2 to pip3. So simplify the
preparation step a bit. (the when: check is deprecated).
Signed-off-by: Fam Zheng <famz@redhat.com>
---
scripts/playbooks/tasks/docker-deploy.yml | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/scripts/playbooks/tasks/docker-deploy.yml b/scripts/playbooks/tasks/docker-deploy.yml
index 5b04b59..2a11893 100644
--- a/scripts/playbooks/tasks/docker-deploy.yml
+++ b/scripts/playbooks/tasks/docker-deploy.yml
@@ -1,16 +1,7 @@
---
-- name: Install Python 3
+- name: Install pip
package:
- name: python34
-- name: Install pip3 (python3-pip)
- package:
- name: python3-pip
- register: pip3_result
- ignore_errors: yes
-- name: Install pip3 (python34-pip)
- package:
- name: python34-pip
- when: pip3_result|failed
+ name: python-pip
- name: Install docker
package:
name: docker
--
2.17.2
_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel