Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bo-Chun Chen
Terraform Openstack
Commits
83a3323c
Commit
83a3323c
authored
5 years ago
by
Ryan Randles Jones
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
45139116
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRI_XCBC/install_ansible.sh
+22
-0
22 additions, 0 deletions
CRI_XCBC/install_ansible.sh
with
22 additions
and
0 deletions
CRI_XCBC/install_ansible.sh
0 → 100644
+
22
−
0
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'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment