From 192c33b4504aaf8ae5563dab4bbd5117dbc03a47 Mon Sep 17 00:00:00 2001 From: Emma Foley Date: Wed, 18 Sep 2019 17:56:49 +0100 Subject: Update ansible scripts to use py3 for Ubuntu and Fedora Signed-off-by: Emma Foley Change-Id: Ia62933a4b824f1280a693fc8004d29c67dc5e2ac --- docker/ansible/roles/install_docker/tasks/ubuntu.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'docker/ansible/roles/install_docker/tasks/ubuntu.yml') diff --git a/docker/ansible/roles/install_docker/tasks/ubuntu.yml b/docker/ansible/roles/install_docker/tasks/ubuntu.yml index 44156873..f3aa81b1 100644 --- a/docker/ansible/roles/install_docker/tasks/ubuntu.yml +++ b/docker/ansible/roles/install_docker/tasks/ubuntu.yml @@ -13,20 +13,23 @@ # limitations under the License. --- +- name: set Python interpreter + set_fact: ansible_python_interpreter=/usr/bin/python3 + - name: update package manager cache tags: - cache_update package: update_cache: yes -- name: install python +- name: install python3 package: - name: python + name: python3 state: present -- name: install python-pip +- name: install python3-pip package: - name: python-pip + name: python3-pip state: present - name: install docker-py -- cgit 1.2.3-korg