diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 677b760..164c8b2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,14 +13,14 @@ jobs: matrix: ansible: - "2.12" - - "2.13" - - "2.14" + # - "2.13" + # - "2.14" scenario: - - pdns-47 - - pdns-48 - - pdns-49 - - pdns-master - - pdns-os-repos + # - pdns-47 + # - pdns-48 + # - pdns-49 + # - pdns-master + # - pdns-os-repos - systemd-no-overrides fail-fast: false steps: @@ -38,3 +38,9 @@ jobs: run: tox -- molecule test -s ${{ matrix.scenario }} env: ANSIBLE: ${{ matrix.ansible }} + - run: | + docker ps --all + docker image ls --all + docker run molecule_pdns/ubuntu:20.04 whoami + docker --version + if: always() diff --git a/molecule/resources/create.yml b/molecule/resources/create.yml index a3aa1f5..d0a0eb2 100644 --- a/molecule/resources/create.yml +++ b/molecule/resources/create.yml @@ -48,6 +48,12 @@ volumes: "{{ item.volumes | default(omit) }}" with_items: "{{ molecule_service_instances }}" + - name: Show host information + shell: "docker ps --all" + register: ps + + - debug: var=ps.stdout_lines + - name: Create the required Services instance(s) docker_container: name: "{{ item.name }}" @@ -58,7 +64,35 @@ state: started recreate: False privileged: "yes" + restart_policy: on-failure volumes: # Mount the cgroups fs to allow SystemD to run into the containers - "/sys/fs/cgroup:/sys/fs/cgroup:ro" with_items: "{{ molecule_platform_instances }}" + + - name: Get info on docker host and list images + community.docker.docker_host_info: + images: true + register: result + + - name: Show host information + ansible.builtin.debug: + var: result.host_info + + - name: Show host information + shell: "docker ps --all" + register: ps + + - debug: var=ps.stdout_lines + + - name: Show host information + shell: "docker ps --all | grep molecule_pdns/ubuntu | head -1 | awk '{print $1}'" + register: ps + + - debug: var=ps.stdout_lines + + - name: Show host information + shell: "docker logs $(docker ps --all | grep molecule_pdns/ubuntu | head -1 | awk '{print $1}')" + register: ps + + - debug: var=ps.stdout_lines diff --git a/molecule/resources/prepare.yml b/molecule/resources/prepare.yml index e9e9832..0422ebc 100644 --- a/molecule/resources/prepare.yml +++ b/molecule/resources/prepare.yml @@ -2,6 +2,7 @@ - name: Prepare the Molecule Test Resources hosts: pdns + gather_facts: false tasks: # Make sure the default MySQL and SQLite # schemas are installed in /usr/share/doc/ diff --git a/molecule/systemd-no-overrides/molecule.yml b/molecule/systemd-no-overrides/molecule.yml index 7e41dff..d702ede 100644 --- a/molecule/systemd-no-overrides/molecule.yml +++ b/molecule/systemd-no-overrides/molecule.yml @@ -10,10 +10,10 @@ dependency: name: galaxy platforms: - - name: debian-10 - groups: ["pdns"] - image: debian:10 - dockerfile_tpl: debian-systemd + # - name: debian-10 + # groups: ["pdns"] + # image: debian:10 + # dockerfile_tpl: debian-systemd - name: ubuntu-2004 groups: ["pdns"] @@ -32,6 +32,8 @@ provisioner: fact_caching_connection: .ansible_cache fact_caching_timeout: 7200 remote_tmp: /tmp + stdout_callback: debug + stderr_callback: debug ssh_connection: pipelining: true inventory: diff --git a/tox.ini b/tox.ini index 41095ce..0b94adb 100644 --- a/tox.ini +++ b/tox.ini @@ -5,18 +5,18 @@ skipsdist = true [gh-actions:env] ANSIBLE= - 2.12: ansible212 - 2.13: ansible213 + # 2.12: ansible212 + # 2.13: ansible213 2.14: ansible214 [testenv] passenv = * deps = -rtest-requirements.txt - ansible212: ansible-core>2.12,<2.13 - ansible213: ansible-core>2.13,<2.14 + # ansible212: ansible-core>2.12,<2.13 + # ansible213: ansible-core>2.13,<2.14 ansible214: ansible-core>2.14,<2.15 setenv = PY_COLORS = 1 commands = - {posargs:molecule test --all --destroy always} \ No newline at end of file + {posargs:molecule test --all --destroy never} \ No newline at end of file