Go to file
Tobias Trabelsi e312aac855 and now to actually build it X_x 2020-06-11 12:45:06 +02:00
alpine-3 updated alpine to 3.10 to support multiarch 2019-11-17 18:39:54 +01:00
arch python2 is dead 2019-11-17 18:28:26 +01:00
centos-7 added git as a dependency of ansible galaxy 2019-10-08 21:53:22 +02:00
centos-8 and now to actually build it X_x 2020-06-11 12:45:06 +02:00
debian-7 added apt-utils to debian systems 2018-01-29 22:40:35 +01:00
debian-8 added apt-utils to debian systems 2018-01-29 22:40:35 +01:00
fedora-24 moved dockerfiles to folders for automated builds with docker hub 2016-08-13 13:32:33 +02:00
ubuntu-14.04 added git as a dependency of ansible galaxy 2019-10-08 21:53:22 +02:00
ubuntu-16.04 added apt-utils to debian systems 2018-01-29 22:40:35 +01:00
ubuntu-18.04 #1 added ubuntu 18.04 support 2019-05-24 18:06:01 +02:00
ubuntu-20.04 centos 8 and frontend settings to install 2020-06-11 12:23:02 +02:00
.drone.yml and now to actually build it X_x 2020-06-11 12:45:06 +02:00
README.md added ubuntu 19.04 2019-10-27 21:35:29 +01:00
build-all.sh added mutiarch support for debian7 2019-11-17 19:07:04 +01:00

README.md

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
  • debian-8
  • fedora-24
  • ubuntu-16.04
  • ubuntu-18.04
  • ubuntu-19.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: 0.7.2