aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mongodb/tasks/bootstrap_cluster.yml
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2016-11-15 19:01:25 -0700
committerSteven Dake <stdake@cisco.com>2016-11-15 21:34:17 -0700
commit3fcef82946f7053affcfb0b1b3ef4292beb9fa95 (patch)
tree0b9083d2cbf7d6c8d372de6b016419d6a719d424 /ansible/roles/mongodb/tasks/bootstrap_cluster.yml
parent0963c2255a9718419c1cf8deaff350ea6ddc8472 (diff)
downloadkolla-3fcef82946f7053affcfb0b1b3ef4292beb9fa95.tar.gz
kolla-3fcef82946f7053affcfb0b1b3ef4292beb9fa95.zip
Remove Ansible from Kolla
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
Diffstat (limited to 'ansible/roles/mongodb/tasks/bootstrap_cluster.yml')
-rw-r--r--ansible/roles/mongodb/tasks/bootstrap_cluster.yml17
1 files changed, 0 insertions, 17 deletions
diff --git a/ansible/roles/mongodb/tasks/bootstrap_cluster.yml b/ansible/roles/mongodb/tasks/bootstrap_cluster.yml
deleted file mode 100644
index 31068f8b9..000000000
--- a/ansible/roles/mongodb/tasks/bootstrap_cluster.yml
+++ /dev/null
@@ -1,17 +0,0 @@
----
-- name: Copying the mongodb replication set bootstrap script
- local_action: template src=bootstrap_cluster.js.j2 dest=/tmp/mongodb_bootstrap_replication_set.js
- run_once: True
-
-- name: Bootstraping the mongodb replication set
- command: "docker exec -t mongodb mongo {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} --quiet --eval '{{ lookup('file','/tmp/mongodb_bootstrap_replication_set.js') }}'"
- register: bootstrap_mongodb_cluster
- failed_when: "{{ (bootstrap_mongodb_cluster.stdout|from_json).ok != 1 }}"
- delegate_to: "{{ groups['mongodb'][0] }}"
- run_once: True
-
-- name: Deleting the mongodb replication set bootstrap script
- local_action: file path=/tmp/mongodb_bootstrap_replication_set.js state=absent
- changed_when: false
- failed_when: false
- run_once: True