mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 01:28:11 -03:30
Add Backup
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Write script for calico/docker bridge configuration
|
||||
template: src=create_cbr.j2 dest=/etc/network/if-up.d/create_cbr mode=u+x
|
||||
template: src=create_cbr.j2 dest=/etc/network/if-up.d/create_cbr mode=u+x backup=yes
|
||||
when: kube_network_plugin is defined and kube_network_plugin == "calico"
|
||||
|
||||
- name: Configure calico/docker bridge
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
- ca-certificates
|
||||
|
||||
- name: Configure docker apt repository
|
||||
template: src=docker.list.j2 dest=/etc/apt/sources.list.d/docker.list
|
||||
template: src=docker.list.j2 dest=/etc/apt/sources.list.d/docker.list backup=yes
|
||||
|
||||
- name: Install docker-engine
|
||||
apt: pkg={{ item }} state=present force=yes update_cache=yes
|
||||
|
||||
@@ -1 +1 @@
|
||||
deb https://apt.dockerproject.org/repo debian-{{ ansible_distribution_release }} main
|
||||
deb https://apt.dockerproject.org/repo {{ansible_distribution|lower}}-{{ ansible_distribution_release}} main
|
||||
|
||||
Reference in New Issue
Block a user