Skip to content
Snippets Groups Projects
Commit 28fbe8bc authored by jurgenhaas's avatar jurgenhaas
Browse files

Issue #6: Install additional components and cleanup

parent 8832d86f
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ sudo apt-get install python-setuptools
sudo easy_install -U pip
sudo pip install requests
sudo pip install boto
sudo pip install six
```
## Configuration
......
......@@ -17,6 +17,24 @@
- "jiffybox"
- "serverdensity"
tasks:
- name: "Install OS components"
sudo: yes
apt: pkg={{item}} state=installed update_cache=yes
with_items:
- python-setuptools
- easy_install
- name: "Install PIP"
sudo: yes
easy_install: name={{item}}
with_items:
- pip
- name: "Install Python Components"
sudo: yes
pip: name={{item}} state=present
with_items:
- requests
- boto
- six
- name: "Get other repositories"
git:
accept_hostkey: yes
......@@ -30,18 +48,6 @@
- repo: "{{ repo }}:ansible-inventories/{{ company }}.git"
dest: "./inventory"
force: no
- name: "Ensure plugins directory"
file:
dest="/usr/share/ansible_plugins/action_plugins"
state="directory"
sudo: yes
- name: "Install plugins"
file:
src="{{ lookup('env','PWD') }}/plugins/{{ item }}/action_plugins/{{ item }}.py"
dest="/usr/share/ansible_plugins/action_plugins/{{ item }}.py"
state="link"
sudo: yes
with_items: "{{ plugins }}"
- name: "Configure ansible"
ini_file:
dest: "~/.ansible.cfg"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment