Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ansible/ansible-examples.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas Meijer <bas.meijer@me.com>2016-04-08 10:26:14 +0300
committerBas Meijer <bas.meijer@me.com>2016-04-08 10:26:14 +0300
commit036c3b81384ea9c01b3ba3809bf4c29ec405e83e (patch)
treed8f1c65aebabb7e79c4e561a3dfa0510dcfcdb20 /mongodb
parent934dd82f16179feb857cb00ac973e203c02418ef (diff)
ran ansible-lint: stripped trailing spaces
Diffstat (limited to 'mongodb')
-rw-r--r--mongodb/playbooks/testsharding.yml4
-rw-r--r--mongodb/roles/common/tasks/main.yml8
-rw-r--r--mongodb/roles/mongod/tasks/shards.yml2
-rw-r--r--mongodb/roles/mongos/tasks/main.yml4
-rw-r--r--mongodb/site.yml2
5 files changed, 10 insertions, 10 deletions
diff --git a/mongodb/playbooks/testsharding.yml b/mongodb/playbooks/testsharding.yml
index 71ce9f5..dc8514d 100644
--- a/mongodb/playbooks/testsharding.yml
+++ b/mongodb/playbooks/testsharding.yml
@@ -11,7 +11,7 @@
pause: minutes=3
- name: Execute the collection creation script
- command: /usr/bin/mongo localhost:${mongos_port}/test -u admin -p ${mongo_admin_pass} /tmp/testsharding.js
+ command: /usr/bin/mongo localhost:${mongos_port}/test -u admin -p ${mongo_admin_pass} /tmp/testsharding.js
- - name: Enable sharding on the database and collection
+ - name: Enable sharding on the database and collection
command: /usr/bin/mongo localhost:${mongos_port}/admin -u admin -p ${mongo_admin_pass} /tmp/enablesharding.js
diff --git a/mongodb/roles/common/tasks/main.yml b/mongodb/roles/common/tasks/main.yml
index 3b89bb9..e8f4803 100644
--- a/mongodb/roles/common/tasks/main.yml
+++ b/mongodb/roles/common/tasks/main.yml
@@ -1,10 +1,10 @@
---
-# This Playbook runs all the common plays in the deployment
+# 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: Create the repository for 10Gen
+- name: Create the repository for 10Gen
copy: src=10gen.repo.j2 dest=/etc/yum.repos.d/10gen.repo
- name: Create the EPEL Repository.
@@ -29,8 +29,8 @@
- python-pip
- name: Install the latest pymongo package
- pip: name=pymongo state=latest use_mirrors=no
+ pip: name=pymongo state=latest use_mirrors=no
- name: Create the iptables file
template: src=iptables.j2 dest=/etc/sysconfig/iptables
- notify: restart iptables
+ notify: restart iptables
diff --git a/mongodb/roles/mongod/tasks/shards.yml b/mongodb/roles/mongod/tasks/shards.yml
index 794d020..5387220 100644
--- a/mongodb/roles/mongod/tasks/shards.yml
+++ b/mongodb/roles/mongod/tasks/shards.yml
@@ -7,7 +7,7 @@
delegate_to: '{{ item }}'
with_items: groups.mongos_servers
-- name: Add the shard to the mongos
+- name: Add the shard to the mongos
shell: /usr/bin/mongo localhost:{{ mongos_port }}/admin -u admin -p {{ mongo_admin_pass }} /tmp/shard_init_{{ inventory_hostname }}.js
delegate_to: '{{ item }}'
with_items: groups.mongos_servers
diff --git a/mongodb/roles/mongos/tasks/main.yml b/mongodb/roles/mongos/tasks/main.yml
index b3ec13c..6ecbfd9 100644
--- a/mongodb/roles/mongos/tasks/main.yml
+++ b/mongodb/roles/mongos/tasks/main.yml
@@ -16,8 +16,8 @@
- name: pause
pause: seconds=20
-- name: copy the file for shard test
+- name: copy the file for shard test
template: src=testsharding.j2 dest=/tmp/testsharding.js
-- name: copy the file enable sharding
+- name: copy the file enable sharding
template: src=enablesharding.j2 dest=/tmp/enablesharding.js
diff --git a/mongodb/site.yml b/mongodb/site.yml
index b7f9ba3..2caa62f 100644
--- a/mongodb/site.yml
+++ b/mongodb/site.yml
@@ -19,4 +19,4 @@
- hosts: mongo_servers
tasks:
- - include: roles/mongod/tasks/shards.yml
+ - include: roles/mongod/tasks/shards.yml