7516fe142f
* Ansible: move to Ansible 3.4.0 which uses ansible-base 2.10.10 * Docs: add a note about ansible upgrade post 2.9.x * CI: ensure ansible is removed before ansible 3.x is installed to avoid pip failures * Ansible: use newer ansible-lint * Fix ansible-lint 5.0.11 found issues * syntax issues * risky-file-permissions * var-naming * role-name * molecule tests * Mitogen: use 0.3.0rc1 which adds support for ansible 2.10+ * Pin ansible-base to 2.10.11 to get package fix on RHEL8
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
---
|
|
- name: ensure containerd repository public key is installed
|
|
apt_key:
|
|
id: "{{ item }}"
|
|
url: "{{ containerd_repo_key_info.url }}"
|
|
state: present
|
|
register: keyserver_task_result
|
|
until: keyserver_task_result is succeeded
|
|
retries: 4
|
|
delay: "{{ retry_stagger | d(3) }}"
|
|
with_items: "{{ containerd_repo_key_info.repo_keys }}"
|
|
environment: "{{ proxy_env }}"
|
|
when: ansible_pkg_mgr == 'apt'
|
|
|
|
- name: ensure containerd repository is enabled
|
|
apt_repository:
|
|
repo: "{{ item }}"
|
|
state: present
|
|
with_items: "{{ containerd_repo_info.repos }}"
|
|
when: ansible_pkg_mgr == 'apt'
|
|
|
|
- name: Configure containerd repository on Fedora
|
|
template:
|
|
src: "fedora_containerd.repo.j2"
|
|
dest: "{{ yum_repo_dir }}/containerd.repo"
|
|
mode: 0644
|
|
when: ansible_distribution == "Fedora"
|
|
|
|
- name: Configure containerd repository on RedHat/OracleLinux/CentOS/AlmaLinux
|
|
template:
|
|
src: "rh_containerd.repo.j2"
|
|
dest: "{{ yum_repo_dir }}/containerd.repo"
|
|
mode: 0644
|
|
when:
|
|
- ansible_os_family == "RedHat"
|
|
- ansible_distribution not in ["Fedora", "Amazon"]
|