Update to 2023-07-03 11:00

This commit is contained in:
Daniel Berteaud
2023-07-03 11:00:09 +02:00
parent 53d90f07e0
commit 364f212977
8 changed files with 4 additions and 51 deletions

View File

@@ -1,14 +0,0 @@
---
- name: Compress previous version
command: tar cf {{ vault_root_dir }}/archives/{{ vault_current_version }}.tar.zst --use-compress-program=zstd ./
args:
chdir: "{{ vault_root_dir }}/archives/{{ vault_current_version }}"
environment:
ZSTD_CLEVEL: 10
tags: vault
- name: Remove archive dir
file: path={{ vault_root_dir }}/archives/{{ vault_current_version }} state=absent
tags: vault

View File

@@ -1,10 +0,0 @@
---
- name: Create the archive dir
file: path={{ vault_root_dir }}/archives/{{ vault_current_version }} state=directory
tags: vault
- name: Backup previous version
copy: src={{ vault_root_dir }}/bin/vault dest={{ vault_root_dir }}/archives/{{ vault_current_version }}/ remote_src=True
tags: vault

View File

@@ -3,6 +3,5 @@
- name: Remove tmp and obsolete files
file: path={{ item }} state=absent
loop:
- "{{ vault_root_dir }}/tmp/vault_{{ vault_version }}_linux_amd64.zip"
- "{{ vault_root_dir }}/tmp/vault"
- "{{ vault_root_dir }}/archives"
tags: vault

View File

@@ -7,10 +7,6 @@
owner: root
group: root
mode: 755
- dir: archives
owner: root
group: root
mode: 700
- dir: backup
owner: root
group: root

View File

@@ -29,6 +29,3 @@
dest: /etc/profile.d/vault.sh
mode: 0755
tags: vault
- name: Write version
copy: content={{ vault_version }} destination={{ vault_root_dir }}/meta/ansible_version

View File

@@ -9,10 +9,6 @@
- include_tasks: facts.yml
tags: always
- include_tasks: archive_pre.yml
when: vault_install_mode | default('none') == 'upgrade'
tags: always
- include_tasks: install.yml
tags: always
@@ -26,10 +22,6 @@
- include_tasks: services.yml
tags: always
- include_tasks: archive_post.yml
when: vault_install_mode | default('none') == 'upgrade'
tags: always
- include_tasks: cleanup.yml
tags: always