* project: update all dependencies including ansible Upgrade to ansible 7.x and ansible-core 2.14.x. There seems to be issue with ansible 8/ansible-core 2.15 so we remain on those versions for now. It's quite a big bump already anyway. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: install aws galaxy collection Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * ansible-lint: disable various rules after ansible upgrade Temporarily disable a bunch of linting action following ansible upgrade. Those should be taken care of separately. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve deprecated-module ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve no-free-form ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[meta] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[playbook] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[tasks] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-file-permissions ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-shell-pipe ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: remove deprecated warn args Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use fqcn for non builtin tasks Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve syntax-check[missing-file] for contrib playbook Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use arithmetic inside jinja to fix ansible 6 upgrade Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
89 lines
2.1 KiB
YAML
89 lines
2.1 KiB
YAML
---
|
|
- name: CRI-O | Kubic repo name for debian os family
|
|
set_fact:
|
|
crio_kubic_debian_repo_name: "{{ ((ansible_distribution == 'Ubuntu') | ternary('x','')) ~ ansible_distribution ~ '_' ~ ansible_distribution_version }}"
|
|
when: ansible_os_family == "Debian"
|
|
tags:
|
|
- reset_crio
|
|
|
|
- name: CRI-O | Remove kubic apt repo
|
|
apt_repository:
|
|
repo: "deb http://{{ crio_download_base }}/{{ crio_kubic_debian_repo_name }}/ /"
|
|
state: absent
|
|
when: crio_kubic_debian_repo_name is defined
|
|
tags:
|
|
- reset_crio
|
|
|
|
- name: CRI-O | Remove cri-o apt repo
|
|
apt_repository:
|
|
repo: "deb {{ crio_download_crio }}{{ crio_version }}/{{ crio_kubic_debian_repo_name }}/ /"
|
|
state: present
|
|
filename: devel-kubic-libcontainers-stable-cri-o
|
|
when: crio_kubic_debian_repo_name is defined
|
|
tags:
|
|
- reset_crio
|
|
|
|
- name: CRI-O | Remove CRI-O kubic yum repo
|
|
yum_repository:
|
|
name: devel_kubic_libcontainers_stable
|
|
state: absent
|
|
when: ansible_distribution in ["Amazon"]
|
|
tags:
|
|
- reset_crio
|
|
|
|
- name: CRI-O | Remove CRI-O kubic yum repo
|
|
yum_repository:
|
|
name: "devel_kubic_libcontainers_stable_cri-o_{{ crio_version }}"
|
|
state: absent
|
|
when:
|
|
- ansible_os_family == "RedHat"
|
|
- ansible_distribution not in ["Amazon", "Fedora"]
|
|
tags:
|
|
- reset_crio
|
|
|
|
- name: CRI-O | Run yum-clean-metadata
|
|
command: yum clean metadata
|
|
when:
|
|
- ansible_os_family == "RedHat"
|
|
tags:
|
|
- reset_crio
|
|
|
|
- name: CRI-O | Remove crictl
|
|
file:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
loop:
|
|
- /etc/crictl.yaml
|
|
- "{{ bin_dir }}/crictl"
|
|
tags:
|
|
- reset_crio
|
|
|
|
- name: CRI-O | Stop crio service
|
|
service:
|
|
name: crio
|
|
daemon_reload: true
|
|
enabled: false
|
|
masked: true
|
|
state: stopped
|
|
tags:
|
|
- reset_crio
|
|
|
|
- name: CRI-O | Remove CRI-O configuration files
|
|
file:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
loop:
|
|
- /etc/crio
|
|
- /etc/containers
|
|
- /etc/systemd/system/crio.service.d
|
|
tags:
|
|
- reset_crio
|
|
|
|
- name: CRI-O | Remove CRI-O binaries
|
|
file:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
with_items: "{{ crio_bin_files }}"
|
|
tags:
|
|
- reset_crio
|