Ansible: fast update of binaries

If you are using locally build binaries as a developer you likely will
want to just push those binaries to an existing cluster, not rerun the
entire playbook.  Add a tag to do just that.
This commit is contained in:
Eric Paris 2015-07-16 11:23:23 -04:00
parent 0653156e1e
commit 9aed89f816
4 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,7 @@
- kube-scheduler
- kube-controller-manager
- kubectl
notify: restart daemons
- name: Copy master service files
copy:

View File

@ -1,9 +1,13 @@
---
- include: packageManagerInstall.yml
when: source_type == "packageManager"
tags:
- binary-update
- include: localBuildInstall.yml
when: source_type == "localBuild"
tags:
- binary-update
- name: write the config file for the api server
template: src=apiserver.j2 dest={{ kube_config_dir }}/apiserver

View File

@ -8,6 +8,8 @@
- kubelet
- kube-proxy
- kubectl
notify:
- restart daemons
- name: Copy node service files
copy:

View File

@ -10,9 +10,13 @@
- include: packageManagerInstall.yml
when: source_type == "packageManager"
tags:
- binary-update
- include: localBuildInstall.yml
when: source_type == "localBuild"
tags:
- binary-update
- name: Make sure manifest directory exists
file: path={{ kube_manifest_dir }} state=directory