Go to file
Tobias Trabelsi 9c948d5788
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing
continuous-integration/drone Build is passing
prepare release
2022-04-20 20:21:39 +02:00
almalinux-8 removed centos 8 in favor of almalinux 2022-02-10 15:53:05 +01:00
alpine-3.14 and better alpine support 2022-04-20 19:41:18 +02:00
alpine-3.15 and better alpine support 2022-04-20 19:41:18 +02:00
arch do not rely on cache 2021-10-02 16:03:26 +02:00
centos-7 fixup from last release 2020-10-31 18:54:14 +01:00
debian-8 also upgraded ansible in debian 8 2020-10-31 18:57:30 +01:00
debian-9 fixup from last release 2020-10-31 18:54:14 +01:00
debian-10 minor improvements and architecture adaptations 2021-01-31 00:22:32 +01:00
fedora-34 some more rhel family love 2022-04-20 19:38:19 +02:00
fedora-35 some more rhel family love 2022-04-20 19:38:19 +02:00
fedora-36 some more rhel family love 2022-04-20 19:38:19 +02:00
fedora-37 some more rhel family love 2022-04-20 19:38:19 +02:00
ubuntu-14.04 added goss 2020-10-31 16:47:55 +01:00
ubuntu-16.04 added goss 2020-10-31 16:47:55 +01:00
ubuntu-18.04 added goss 2020-10-31 16:47:55 +01:00
ubuntu-20.04 added goss 2020-10-31 16:47:55 +01:00
ubuntu-22.04 fixed ubuntu 22.04 python apt package name 2022-04-20 19:42:30 +02:00
.drone.jsonnet cpu limit as digit 2022-02-15 22:31:59 +01:00
.drone.yml and better alpine support 2022-04-20 19:41:18 +02:00
build-all.sh and better alpine support 2022-04-20 19:41:18 +02:00
README.md prepare release 2022-04-20 20:21:39 +02:00

ansible

Build Status

Docker images for running and testing ansible playbooks with various operating systems. This Project is based on this project, which seems abandoned I don't like obfuscated Dockerfiles with external scripts and hundreds of bells and whistles, so I created these simple ones.

Available operating systems:

  • alpine-3
  • centos-7
  • almalinux-8
  • debian-8
  • fedora-24
  • ubuntu-16.04
  • ubuntu-18.04
  • ubuntu-20.04
  • ubuntu-22.04
  • arch

run playbooks

docker run -it --rm \
    -w /site \
    -v /path/to/site/:/site \
    -v /path/to/ansible-user-ssh/:/root/.ssh:ro \
    --tmpfs /root/.ansible \
    lerentis/ansible:alpine-3 \
    ansible-playbook site.yml

Note: /root/.ansible must not be an overlayfs, otherwise ssh accelerate won't work.

run tests with drone.io

pipeline:
  build:
    image: lerentis/ansible:${OS}
    commands:
      - ansible-playbook -i tests/inventory tests/main.yml --syntax-check
      - ansible-playbook -i tests/inventory tests/main.yml

matrix:
  OS:
    - centos-7
    - debian-8
    - fedora-24
    - ubuntu-16.04
    - arch

run tests with travis-ci

sudo: required

env:
- OS: centos-7
- OS: debian-8
- OS: fedora-24
- OS: ubuntu-16.04
- OS: arch

services:
- docker

before_install:
- docker pull lerentis/ansible:${OS}

script:
- docker run -t -w /site -v $(pwd):/site lerentis/ansible:${OS} ansible-playbook -i tests/inventory tests/main.yml --syntax-check
- docker run -t -w /site -v $(pwd):/site lerentis/ansible:${OS} ansible-playbook -i tests/inventory tests/main.yml

references

Current Version: 2.0