~xenrox/ansible

2d499fdcc21407d2805595013e617f0c2fafc476 — Thorben Günther 2 years ago 52668f5
CI: Enable molecule again

Tried to fix 'cannot create temporary directory' bug.
3 files changed, 11 insertions(+), 14 deletions(-)

M .build.yml
M misc/Dockerfile
M molecule/default/molecule.yml
M .build.yml => .build.yml +11 -11
@@ 2,10 2,10 @@ image: archlinux
packages:
  - ansible
  - ansible-lint
  # - docker
  # - molecule
  # - molecule-docker
  # - python-dnspython
  - docker
  - molecule
  - molecule-docker
  - python-dnspython
  - yamllint
  - terraform
sources:


@@ 30,10 30,10 @@ tasks:
      cd ../terraform_keycloak
      terraform init -backend=false
      terraform validate
  # - build-docker: |
  #     cd ansible/misc
  #     sudo systemctl start docker
  #     docker build -f Dockerfile -t archlinux-docker .
  # - molecule: |
  #     cd ansible
  #     molecule test
  - build-docker: |
      cd ansible/misc
      sudo systemctl start docker
      docker build -f Dockerfile -t archlinux-docker .
  - molecule: |
      cd ansible
      molecule test

M misc/Dockerfile => misc/Dockerfile +0 -1
@@ 21,5 21,4 @@ RUN pacman -Syu --noconfirm \
RUN mkdir -p /etc/ansible
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts

VOLUME ["/sys/fs/cgroup", "/tmp", "/run"]
CMD ["/usr/lib/systemd/systemd"]

M molecule/default/molecule.yml => molecule/default/molecule.yml +0 -2
@@ 13,8 13,6 @@ platforms:
      - archlinux
    image: archlinux-docker
    command: ""
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:ro
    privileged: true
    pre_build_image: true