Fix variable interpolation

pull/63/head
Puru 9 years ago
parent 72cca7331f
commit 8a201d7a12
  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