Copy mongodb_bootstrap_replication_set.js to /tmp on the deployment host

Change-Id: I502801c0ce6b9ff6b8216d3fce9957061593674d
Closes-bug: #1622993
This commit is contained in:
Christian Berendt 2016-09-13 13:27:27 +02:00
parent ea747d7ce2
commit e6d38854d6

View File

@ -1,7 +1,6 @@
--- ---
- name: Copying the mongodb replication set bootstrap script - name: Copying the mongodb replication set bootstrap script
template: src=bootstrap_cluster.js.j2 dest=/tmp/mongodb_bootstrap_replication_set.js local_action: template src=bootstrap_cluster.js.j2 dest=/tmp/mongodb_bootstrap_replication_set.js
delegate_to: "{{ groups['mongodb'][0] }}"
run_once: True run_once: True
- name: Bootstraping the mongodb replication set - name: Bootstraping the mongodb replication set
@ -12,8 +11,7 @@
run_once: True run_once: True
- name: Deleting the mongodb replication set bootstrap script - 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 changed_when: false
failed_when: false failed_when: false
delegate_to: "{{ groups['mongodb'][0] }}"
run_once: True run_once: True