ansible-roles/roles/pythonz at master ยท shrkw/ansible-roles
The contents to be executed are as follows.
/ usr / local / pythonz
I will not create the environment of Virtualenv, so log in and create it with any option.
virtualenv -p /usr/local/pythonz/pythons/CPython-2.7.8/bin/python ~/.virtualenvs/CP278
source ~/.virtualenvs/CP278/bin/activate
Since the playbook.yml
file is placed, you can use it as a shortcut to execute the module.
Create a file with the name hosts
like this,
hosts
[target]
127.0.0.1 ansible_ssh_port=2200 ansible_ssh_user=vagrant ansible_ssh_private_key_file=/Users/shrkw/.vagrant.d/insecure_private_key
If you execute it like this, it's OK.
ansible-playbook -i hosts playbook.yml
Recommended Posts