Skip to content

Commit

Permalink
Merge pull request #66 from grycap/devel
Browse files Browse the repository at this point in the history
Devel
  • Loading branch information
micafer authored Dec 7, 2023
2 parents c2cb171 + f3b41b9 commit 20ca9ef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

molecule_docker:
name: Molecule
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
distro:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:

molecule_containerd:
name: Molecule
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
distro:
Expand All @@ -64,12 +64,12 @@ jobs:
python-version: '3.x'

- name: Install test dependencies.
run: pip3 install ansible molecule[docker] docker
run: pip3 install ansible molecule-plugins[docker] docker

- name: Run Molecule tests.
run: molecule test
env:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
MOLECULE_DISTRO: ${{ matrix.distro }}
CONTAINERD: '1'
CONTAINERD: '1'
12 changes: 5 additions & 7 deletions tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
when: ansible_distribution == "Ubuntu"

- name: Add Docker repo key
apt_key: url="https://download.docker.com/linux/debian/gpg"
ignore_errors: yes
register: add_docker_repo

- name: Add Docker repo key (python 2.7.9 or older)
shell: curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -qq - >/dev/null
when: add_docker_repo is failed
get_url:
url: "https://download.docker.com/linux/debian/gpg"
dest: /etc/apt/trusted.gpg.d/docker.asc
mode: '0644'
force: true

- name: Add docker-ce repo
apt_repository: repo='deb [arch=amd64] https://download.docker.com/linux/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} {{ docker_channel }}'
Expand Down
6 changes: 3 additions & 3 deletions tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@
((ansible_os_family == "RedHat" and ansible_distribution_major_version == "7") or
(ansible_os_family == "Debian"))

- name: force all notified handlers to run at this point, not waiting for normal sync points
meta: flush_handlers

- name: start docker
service: name=docker state=started

- name: enable docker service
service: name=docker enabled=yes

- name: force all notified handlers to run at this point, not waiting for normal sync points
meta: flush_handlers

when: docker_install | bool

- block:
Expand Down

0 comments on commit 20ca9ef

Please sign in to comment.