Skip to content
Snippets Groups Projects
Commit 667a6981 authored by Etienne Champetier's avatar Etienne Champetier Committed by Kubernetes Prow Robot
Browse files

preinstall: remove credentials folder move


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

Signed-off-by: default avatarEtienne Champetier <champetier.etienne@gmail.com>
parent cf1d9f56
No related branches found
No related tags found
No related merge requests found
---
- 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
...@@ -11,14 +11,6 @@ ...@@ -11,14 +11,6 @@
tags: tags:
- asserts - 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 - import_tasks: 0040-set_facts.yml
tags: tags:
- resolvconf - resolvconf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment