Merge pull request #107 from tuladhar/fix-var-interpo

Fix variable interpolation syntax
pull/63/head
Brian Coca 9 years ago
commit 4913654ab5
  1. 4
      mongodb/roles/mongod/tasks/main.yml

@ -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