diff options
author | Emma Foley <efoley@redhat.com> | 2019-09-18 17:56:49 +0100 |
---|---|---|
committer | Emma Foley <efoley@redhat.com> | 2019-10-02 20:44:17 +0100 |
commit | 192c33b4504aaf8ae5563dab4bbd5117dbc03a47 (patch) | |
tree | 17db6ad90c03302304d019b3d089da0f66b809de /docker/ansible/roles/install_docker/tasks/ubuntu.yml | |
parent | 43934f597f3381a70ea231acdb172434e10794bb (diff) |
Update ansible scripts to use py3 for Ubuntu and Fedora
Signed-off-by: Emma Foley <efoley@redhat.com>
Change-Id: Ia62933a4b824f1280a693fc8004d29c67dc5e2ac
Diffstat (limited to 'docker/ansible/roles/install_docker/tasks/ubuntu.yml')
-rw-r--r-- | docker/ansible/roles/install_docker/tasks/ubuntu.yml | 11 |
1 files changed, 7 insertions, 4 deletions
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 |