aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Berendt <berendt@betacloud-solutions.de>2016-09-13 13:27:27 +0200
committerChristian Berendt <berendt@betacloud-solutions.de>2016-09-13 13:28:35 +0200
commite6d38854d6c371123e7c8cba6d65b9facc6b97f4 (patch)
tree06fe6e7fff3a3f3e4e1b9d8eaef485416c3479c7
parentea747d7ce26bf22f2d079bc85aa64972befb0002 (diff)
downloadkolla-e6d38854d6c371123e7c8cba6d65b9facc6b97f4.tar.gz
kolla-e6d38854d6c371123e7c8cba6d65b9facc6b97f4.zip
Copy mongodb_bootstrap_replication_set.js to /tmp on the deployment host
Change-Id: I502801c0ce6b9ff6b8216d3fce9957061593674d Closes-bug: #1622993
-rw-r--r--ansible/roles/mongodb/tasks/bootstrap_cluster.yml6
1 files changed, 2 insertions, 4 deletions
diff --git a/ansible/roles/mongodb/tasks/bootstrap_cluster.yml b/ansible/roles/mongodb/tasks/bootstrap_cluster.yml
index 8d445f36f..31068f8b9 100644
--- a/ansible/roles/mongodb/tasks/bootstrap_cluster.yml
+++ b/ansible/roles/mongodb/tasks/bootstrap_cluster.yml
@@ -1,7 +1,6 @@
---
- name: Copying the mongodb replication set bootstrap script
- template: src=bootstrap_cluster.js.j2 dest=/tmp/mongodb_bootstrap_replication_set.js
- delegate_to: "{{ groups['mongodb'][0] }}"
+ local_action: template src=bootstrap_cluster.js.j2 dest=/tmp/mongodb_bootstrap_replication_set.js
run_once: True
- name: Bootstraping the mongodb replication set
@@ -12,8 +11,7 @@
run_once: True
- name: Deleting the mongodb replication set bootstrap script
- file: path=/tmp/mongodb_bootstrap_replication_set.js state=absent
+ local_action: file path=/tmp/mongodb_bootstrap_replication_set.js state=absent
changed_when: false
failed_when: false
- delegate_to: "{{ groups['mongodb'][0] }}"
run_once: True