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-06-23 15:10:02 +02:00
|
|
|
src: "{{ item }}"
|
|
|
|
dest: "/usr/share/scripts/{{ item }}"
|
2023-06-28 13:22:59 +02:00
|
|
|
force: true
|
2023-03-15 22:50:00 +01:00
|
|
|
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:
|
2023-06-23 15:10:02 +02:00
|
|
|
- apt
|
2023-09-29 15:18:58 +02:00
|
|
|
|
|
|
|
- name: Add signed-by when relevant for bookworm
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
dest: /etc/apt/sources.list.d/system.sources
|
|
|
|
line: "Signed-by: /usr/share/keyrings/debian-archive-keyring.gpg"
|
|
|
|
insertafter: "Suites: bookworm bookworm-updates"
|
|
|
|
state: present
|
|
|
|
tags:
|
|
|
|
- apt
|
|
|
|
|
|
|
|
- name: Add signed-by when relevant for bookworm-security
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
dest: /etc/apt/sources.list.d/security.sources
|
|
|
|
line: "Signed-by: /usr/share/keyrings/debian-archive-keyring.gpg"
|
|
|
|
insertafter: "Suites: bookworm-security"
|
|
|
|
state: present
|
|
|
|
tags:
|
|
|
|
- apt
|