mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-22 19:10:19 +01:00
Fix differences in init systems
This commit is contained in:
parent
940968d86f
commit
1ac286c4dd
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
env:
|
env:
|
||||||
- container_id=$(mktemp) distribution=centos version=7
|
- container_id=$(mktemp) distribution=centos version=7 init=/usr/lib/systemd/systemd
|
||||||
- container_id=$(mktemp) distribution=ubuntu version=14.04
|
- container_id=$(mktemp) distribution=ubuntu version=14.04 init=/sbin/init
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
@ -19,7 +19,7 @@ script:
|
||||||
#
|
#
|
||||||
|
|
||||||
# Run container in detached state
|
# Run container in detached state
|
||||||
- sudo docker run --detach ${distribution}:ansible /sbin/init > "${container_id}"
|
- sudo docker run --detach ${distribution}:ansible "${init}" > "${container_id}"
|
||||||
|
|
||||||
# Syntax check
|
# Syntax check
|
||||||
- sudo docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/test.yml --syntax-check
|
- sudo docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/test.yml --syntax-check
|
||||||
|
|
Loading…
Reference in a new issue