You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
ansible-role-nginx/mongodb/roles/common/tasks/main.yml

30 lines
870 B

---
# This Playbook runs all the common plays in the deployment
- name: Create the hosts file for all machines
template: src=hosts.j2 dest=/etc/hosts
- name: Creates the repository for 10Gen
template: src=10gen.repo.j2 dest=/etc/yum.repos.d/10gen.repo
- name: Copy the EPEL Repository.
template: src=epel.repo.j2 dest=/etc/yum.repos.d/epel.repo
- name: Create the data directory for the namenode metadata
file: path={{ mongodb_datadir_prefix }} owner=mongod group=mongod state=directory
- name: Install the mongodb package
yum: name={{ item }} state=installed
with_items:
- mongo-10gen
- mongo-10gen-server
- bc
- python-pip
- name: Install the latest pymongo package
pip: name=pymongo state=latest use_mirrors=no
- name: Create the iptables file
template: src=iptables.j2 dest=/etc/sysconfig/iptables
notify: restart iptables