scl enable rh-python34 ansible-playbook ...
#!/bin/bashsource /opt/rh/rh-python34/enableansible-playbook ...
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/998ac5f5-f49f-4da3-b6f4-a97ad91b469b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Depends on what you're trying to do. If any of these are true then doing this with ansible might make sense:
A) already have an ansible infrastructure and want to deploy something the same way as the rest of your infra
B) need to deploy this on multiple remote systems
If the following is true then it might not:
A) you just have this single app to deploy to a single host.
I think I'd probably use the script module to use scls at this point in time. Which allows you to integrate a script that you write with ansible. But if you don't need the other features of ansible then you could just add a little bit of extra smarts to your script instead.
Someone could write an scl module in the future (similar to the virtual env module) which would make things like you want to do more natural but there isn't one at the moment.
-Toshio