Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install python 3.5 #3

Open
benigls opened this issue Nov 21, 2015 · 2 comments
Open

Can't install python 3.5 #3

benigls opened this issue Nov 21, 2015 · 2 comments

Comments

@benigls
Copy link

benigls commented Nov 21, 2015

I'm trying to install python 3.5 using the python_version variable from the playbook vars.


---
 - hosts: all
   sudo: yes
   user: root
   roles:
     - Stouts.python
   vars:
     python_version: [3.5, ]
     python_install: [virtualenvwrapper, ]

But it seems that it doesn't install the python 3.5 when I run it.

...
TASK: [Stouts.python | Install python] **************************************** 
ok: [000.000.000.00] => (item=2.7)
ok: [000.000.000.00] => (item=3.4)

TASK: [Stouts.python | Install python-dev] ************************************ 
ok: [000.000.000.00] => (item=2.7)
ok: [000.000.000.00] => (item=3.4)
...

I have to manually insert the 3.5 to the default/main.yml to install it.

...
TASK: [Stouts.python | Install python] **************************************** 
ok: [000.000.000.00] => (item=2.7)
ok: [000.000.000.00] => (item=3.4)
changed: [000.000.000.00] => (item=3.5)

TASK: [Stouts.python | Install python-dev] ************************************ 
ok: [000.000.000.00] => (item=2.7)
ok: [000.000.000.00] => (item=3.4)
changed: [000.000.000.00] => (item=3.5)
...
@skolsuper
Copy link

@benigls I know this is late, but did you try python_versions (note the 's')?

@avelis
Copy link

avelis commented Dec 13, 2018

@benigls
Have you tried the following?

   vars:
     python_versions: [3.5]
     python_install: [virtualenvwrapper]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants