preinstall: remove credentials folder move

This was introduced in 3004791c64,
so since 2018 everyone should be upgraded ;)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
This commit is contained in:
Etienne Champetier 2021-01-09 17:12:18 -05:00 committed by Kubernetes Prow Robot
parent cf1d9f5612
commit 667a6981ea
2 changed files with 0 additions and 36 deletions

View file

@ -1,28 +0,0 @@
---
- name: "Pre-upgrade | check if old credential dir exists"
stat:
path: "{{ inventory_dir }}/../credentials"
delegate_to: localhost
connection: local
register: old_credential_dir
become: no
- name: "Pre-upgrade | check if new credential dir exists"
stat:
path: "{{ inventory_dir }}/credentials"
delegate_to: localhost
connection: local
register: new_credential_dir
become: no
when: old_credential_dir.stat.exists
- name: "Pre-upgrade | move data from old credential dir to new"
command: mv {{ inventory_dir }}/../credentials {{ inventory_dir }}/credentials
args:
creates: "{{ inventory_dir }}/credentials"
delegate_to: localhost
connection: local
become: no
when:
- old_credential_dir.stat.exists
- not new_credential_dir.stat.exists

View file

@ -11,14 +11,6 @@
tags:
- asserts
# This is run before bin_dir is pinned because these tasks are run on localhost
- import_tasks: 0030-pre_upgrade.yml
run_once: true
when:
- not dns_late
tags:
- upgrade
- import_tasks: 0040-set_facts.yml
tags:
- resolvconf