Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bo-Chun Chen
Terraform Openstack
Commits
83a3323c
Commit
83a3323c
authored
Jun 26, 2019
by
Ryan Randles Jones
Browse files
Upload New File
parent
45139116
Changes
1
Hide whitespace changes
Inline
Side-by-side
CRI_XCBC/install_ansible.sh
0 → 100644
View file @
83a3323c
#!/bin/sh
yum
-y
install
epel-release
yum
-y
install
python-devel python-setuptools python-setuptools-devel gcc libffi-devel openssl-devel
easy_install pip
pip
install
virtualenv
mkdir
-p
$HOME
/ansible_env
cd
$HOME
/ansible_env
virtualenv ansible
source
$HOME
/ansible_env/ansible/bin/activate
git clone git://github.com/ansible/ansible.git
--recursive
./ansible_source
#pexpect has to be 3.3 because new 4.01 version only
# works with python >= 2.7 :(
pip
install
paramiko PyYAML Jinja2 httplib2 six
pexpect
==
3.3
#moved this after lib installations
source
$HOME
/ansible_env/ansible_source/hacking/env-setup
-q
## later figure out how to source it together with virtualenv
#echo -e "\nsource $HOME/ansible/hacking/env-setup -q" >> $HOME/.activate_ansible
# run a quick test
echo
"# Ansible Inventory"
>
inventory
echo
"[headnode]"
>>
inventory
echo
"localhost ansible_connection=local"
>>
inventory
ansible
-i
inventory headnode
-a
'hostname'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment