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

Fix variable interpolation syntax
This commit is contained in:
Brian Coca 2015-05-13 13:49:03 -04:00
commit 4913654ab5

View file

@ -14,7 +14,7 @@
- name: Create the mongodb configuration file - 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 }}' delegate_to: '{{ item }}'
with_items: groups.replication_servers with_items: groups.replication_servers
@ -23,7 +23,7 @@
- name: Start the mongodb service - 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 }}' delegate_to: '{{ item }}'
with_items: groups.replication_servers with_items: groups.replication_servers