~zoology/charms/trusty/registrator/trunk

« back to all changes in this revision

Viewing changes to playbooks/stop.yml

  • Committer: Charles Butler
  • Date: 2015-06-18 18:33:08 UTC
  • Revision ID: charles.butler@canonical.com-20150618183308-hz9vaw6pgde509ar
Initial import of the registrator charm

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
---
 
2
- debug: msg="stop"
 
3
 
 
4
- set_fact:
 
5
    backends: "cat {{charm_dir}}/backends.txt"
 
6
 
 
7
- debug: msg="{{ item }}"
 
8
  with_lines: "{{ backends }}"
 
9
 
 
10
- name: stop registrator containers
 
11
  docker:
 
12
    image=gliderlabs/registrator
 
13
    state=absent
 
14
    name="registrator-{{ item }}"
 
15
  with_lines: "{{ backends }}"
 
16
 
 
17
- name: erase backend
 
18
  lineinfile:
 
19
      dest="{{ charm_dir }}/backends.txt"
 
20
      create=yes
 
21
      state=absent
 
22
      line="{{ item }}"
 
23
  with_lines: "{{ backends }}"
 
 
b'\\ No newline at end of file'