mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
CI: Add ArchLinux, Debian Bullseye and CentOS Stream 8 (#301)
* Add ArchLinux, Debian Bullseye and CentOS Stream 8 to CI. * Fixes.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Install docker
|
||||
community.general.pacman:
|
||||
name: docker
|
||||
update_cache: yes
|
||||
notify: cleanup docker
|
||||
@@ -11,10 +11,10 @@
|
||||
notify: cleanup docker
|
||||
|
||||
- name: Add gpg key
|
||||
shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg >key && apt-key add key
|
||||
shell: curl -fsSL https://download.docker.com/linux/{{ ansible_distribution | lower }}/gpg >key && apt-key add key
|
||||
|
||||
- name: Add Docker repo
|
||||
shell: add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||
shell: add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} stable"
|
||||
|
||||
- block:
|
||||
- name: Prevent service restart
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: Install docker-compose as system package
|
||||
pacman:
|
||||
name: "{{ docker_compose_packages }}"
|
||||
state: present
|
||||
@@ -0,0 +1,3 @@
|
||||
---
|
||||
cryptography_package_name: python-cryptography
|
||||
cryptography_package_name_python3: python-cryptography
|
||||
@@ -20,4 +20,5 @@
|
||||
cmd: |
|
||||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*.repo
|
||||
sed -i 's%#baseurl=http://mirror.centos.org/$contentdir/$releasever/%baseurl=https://vault.centos.org/8.4.2105/%g' /etc/yum.repos.d/CentOS-Linux-*.repo
|
||||
ignore_errors: true # This fails for CentOS Stream 8
|
||||
when: ansible_distribution in 'CentOS' and ansible_distribution_major_version == '8'
|
||||
|
||||
Reference in New Issue
Block a user