Normalize tags in all places to prepare for tag fixing in future (#1739)

This commit is contained in:
Aivars Sterns
2017-10-05 10:43:04 +03:00
committed by Matthew Mosesohn
parent cb611b5ed0
commit 9c86da1403
48 changed files with 501 additions and 189 deletions

View File

@@ -2,7 +2,10 @@
dependencies:
- role: download
file: "{{ downloads.weave_kube }}"
tags: download
tags:
- download
- role: download
file: "{{ downloads.weave_npc }}"
tags: download
tags:
- download

View File

@@ -9,7 +9,9 @@
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
changed_when: false
tags: [hyperkube, upgrade]
tags:
- hyperkube
- upgrade
- name: Weave | Create weave-net manifest
template:

View File

@@ -4,28 +4,32 @@
seed: '{% for host in groups["k8s-cluster"] %}{{ hostvars[host]["ansible_default_ipv4"]["macaddress"] }}{% if not loop.last %},{% endif %}{% endfor %}'
when: "weave_seed == 'uninitialized'"
run_once: true
tags: confweave
tags:
- confweave
- name: Weave seed | Set seed if not first time
set_fact:
seed: '{{ weave_seed }}'
when: "weave_seed != 'uninitialized'"
run_once: true
tags: confweave
tags:
- confweave
- name: Weave seed | Set peers if fist time
set_fact:
peers: '{{ weave_ip_current_cluster }}'
when: "weave_peers == 'uninitialized'"
run_once: true
tags: confweave
tags:
- confweave
- name: Weave seed | Set peers if existing peers
set_fact:
peers: '{{ weave_peers }}{% for ip in weave_ip_current_cluster.split(" ") %}{% if ip not in weave_peers.split(" ") %} {{ ip }}{% endif %}{% endfor %}'
when: "weave_peers != 'uninitialized'"
run_once: true
tags: confweave
tags:
- confweave
- name: Weave seed | Save seed
lineinfile:
@@ -36,7 +40,8 @@
become: no
delegate_to: 127.0.0.1
run_once: true
tags: confweave
tags:
- confweave
- name: Weave seed | Save peers
lineinfile:
@@ -47,4 +52,5 @@
become: no
delegate_to: 127.0.0.1
run_once: true
tags: confweave
tags:
- confweave