diff options
author | Puru <tuladharpuru@gmail.com> | 2015-05-13 09:10:37 +0300 |
---|---|---|
committer | Puru <tuladharpuru@gmail.com> | 2015-05-13 09:10:37 +0300 |
commit | 8a201d7a129b54b5e1167f47dcccb4d59d275f3e (patch) | |
tree | 1a1e42bf643a879cdd160e986447dd55b960a8f3 /mongodb | |
parent | 72cca7331f185953518861a945dafda8b6e739dd (diff) |
Fix variable interpolation
Diffstat (limited to 'mongodb')
-rw-r--r-- | mongodb/roles/mongod/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mongodb/roles/mongod/tasks/main.yml b/mongodb/roles/mongod/tasks/main.yml index 53f263d..423db3e 100644 --- a/mongodb/roles/mongod/tasks/main.yml +++ b/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 |