2023-03-15 22:50:00 +01:00
|
|
|
---
|
2023-03-20 23:33:19 +01:00
|
|
|
- ansible.builtin.include_role:
|
2023-03-15 22:50:00 +01:00
|
|
|
name: evolix/remount-usr
|
|
|
|
|
|
|
|
- name: /usr/share/scripts exists
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.file:
|
2023-03-15 22:50:00 +01:00
|
|
|
dest: /usr/share/scripts
|
|
|
|
mode: "0700"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
state: directory
|
|
|
|
tags:
|
|
|
|
- apt
|
|
|
|
|
|
|
|
- name: Migration scripts are installed
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.copy:
|
2023-03-15 22:50:00 +01:00
|
|
|
src: "{{ item }}"
|
|
|
|
dest: "/usr/share/scripts/{{ item }}"
|
|
|
|
force: yes
|
|
|
|
mode: "0755"
|
|
|
|
loop:
|
|
|
|
- deb822-migration.py
|
|
|
|
- deb822-migration.sh
|
|
|
|
tags:
|
|
|
|
- apt
|
|
|
|
|
|
|
|
- name: Exec migration script
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: /usr/share/scripts/deb822-migration.sh
|
2023-03-15 22:50:00 +01:00
|
|
|
ignore_errors: yes
|
|
|
|
tags:
|
|
|
|
- apt
|