|
|
|
@ -14,7 +14,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Create the mongodb configuration file |
|
|
|
|
template: src=mongod.conf.j2 dest=/etc/mongod-${inventory_hostname}.conf |
|
|
|
|
template: src=mongod.conf.j2 dest=/etc/mongod-{{ inventory_hostname }}.conf |
|
|
|
|
delegate_to: '{{ item }}' |
|
|
|
|
with_items: groups.replication_servers |
|
|
|
|
|
|
|
|
@ -23,7 +23,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Start the mongodb service |
|
|
|
|
command: creates=/var/lock/subsys/mongod-${inventory_hostname} /etc/init.d/mongod-${inventory_hostname} start |
|
|
|
|
command: creates=/var/lock/subsys/mongod-{{ inventory_hostname }} /etc/init.d/mongod-{{ inventory_hostname }} start |
|
|
|
|
delegate_to: '{{ item }}' |
|
|
|
|
with_items: groups.replication_servers |
|
|
|
|
|
|
|
|
|