diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2020-07-21 11:27:24 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2020-07-21 16:08:07 +0200 |
commit | 88aaa98a24c571b05dad3d57274ad50851ee5b59 (patch) | |
tree | 4111df076c01a3e77bc0e806465760163c997ebf | |
parent | fc79d28492202a5bc1e16da996fd65cc7b79deee (diff) | |
download | samba-integration-88aaa98a24c571b05dad3d57274ad50851ee5b59.tar.gz samba-integration-88aaa98a24c571b05dad3d57274ad50851ee5b59.tar.xz samba-integration-88aaa98a24c571b05dad3d57274ad50851ee5b59.zip |
Add separate sections for pip2 and pip3
CentOS 7 has python versions 2.7 and 3.8 installed. When using pip to
install these modules, the module location depends on the version we are
installing for. We use the default python location for all our
python scripts used in the test module but the newer selftest modules
requires python 3. This is making it difficult to maintain using the
right version of modules without running OS specific calls.
To avoid these versioning issues, we plan on moving our scripts to
python 3 and while we transition, we temporarily use pip for both python
2 and python 3. We intend on removing the section for python 2 in the
near future.
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
-rw-r--r-- | vagrant/ansible/roles/client.prep/tasks/main.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/vagrant/ansible/roles/client.prep/tasks/main.yml b/vagrant/ansible/roles/client.prep/tasks/main.yml index b8819fa..9da0978 100644 --- a/vagrant/ansible/roles/client.prep/tasks/main.yml +++ b/vagrant/ansible/roles/client.prep/tasks/main.yml @@ -8,9 +8,17 @@ - git state: latest -- name: Install Python yaml package +#This is a temporary section while we move scripts to use python 3 +- name: Install Python 2 modules pip: - name: PyYAML + name: + - PyYAML + +- name: Install Python 3 modules + pip: + executable: /usr/bin/pip3 + name: + - PyYAML - debug: msg: "{{ ctdb_network_public_interfaces }}" |