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>
pull/7160/head
parent
cf1d9f5612
commit
667a6981ea
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue