* containerd: add hashes for 1.5.8 and 1.4.12 and make 1.5.8 the new default * containerd: make nerdctl mandatory for container_manager = containerd * nerdctl: bump to version 0.14.0 * containerd: use nerdctl for image manipulation * OpenSuSE: install basic nerdctl dependencies
70 lines
1.7 KiB
YAML
70 lines
1.7 KiB
YAML
---
|
|
# OpenSUSE ships with Python installed
|
|
|
|
- name: Check that /etc/sysconfig/proxy file exists
|
|
stat:
|
|
path: /etc/sysconfig/proxy
|
|
get_attributes: no
|
|
get_checksum: no
|
|
get_mime: no
|
|
register: stat_result
|
|
|
|
- name: Create the /etc/sysconfig/proxy empty file
|
|
file: # noqa risky-file-permissions
|
|
path: /etc/sysconfig/proxy
|
|
state: touch
|
|
when:
|
|
- http_proxy is defined or https_proxy is defined
|
|
- not stat_result.stat.exists
|
|
|
|
- name: Set the http_proxy in /etc/sysconfig/proxy
|
|
lineinfile:
|
|
path: /etc/sysconfig/proxy
|
|
regexp: '^HTTP_PROXY='
|
|
line: 'HTTP_PROXY="{{ http_proxy }}"'
|
|
become: true
|
|
when:
|
|
- http_proxy is defined
|
|
|
|
- name: Set the https_proxy in /etc/sysconfig/proxy
|
|
lineinfile:
|
|
path: /etc/sysconfig/proxy
|
|
regexp: '^HTTPS_PROXY='
|
|
line: 'HTTPS_PROXY="{{ https_proxy }}"'
|
|
become: true
|
|
when:
|
|
- https_proxy is defined
|
|
|
|
- name: Enable proxies
|
|
lineinfile:
|
|
path: /etc/sysconfig/proxy
|
|
regexp: '^PROXY_ENABLED='
|
|
line: 'PROXY_ENABLED="yes"'
|
|
become: true
|
|
when:
|
|
- http_proxy is defined or https_proxy is defined
|
|
|
|
# Required for zypper module
|
|
- name: Install python-xml
|
|
shell: zypper refresh && zypper --non-interactive install python-xml
|
|
changed_when: false
|
|
become: true
|
|
tags:
|
|
- facts
|
|
|
|
# Without this package, the get_url module fails when trying to handle https
|
|
- name: Install python-cryptography
|
|
zypper:
|
|
name: python-cryptography
|
|
state: present
|
|
update_cache: true
|
|
become: true
|
|
|
|
# Nerdctl needs some basic packages to get an environment up
|
|
- name: Install basic dependencies
|
|
zypper:
|
|
name:
|
|
- iptables
|
|
- apparmor-parser
|
|
state: present
|
|
become: true
|