---
- name: Stop etcd2 service
  service: name=etcd state=stopped
  ignore_errors: yes

- name: Create etcd pod manifest
  template: src=etcd-pod.yml dest=/etc/kubernetes/manifests/etcd-pod.manifest

- name: Check for etcd2 port (pulling image and running container)
  wait_for:
    port: 2379
    delay: 5
