1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-08 11:39:02 +00:00

Update httptester for httpbin==0.6.2

This commit is contained in:
Matt Martz 2018-03-08 15:58:30 -06:00 committed by Matt Clay
parent 6352e67ab2
commit 7c311ad615
4 changed files with 44 additions and 8 deletions

View file

@ -1,8 +1,11 @@
{
"variables": {
"docker_image": "nginx:1.13.8-alpine"
},
"builders": [
{
"type": "docker",
"image": "nginx:alpine",
"image": "{{user `docker_image`}}",
"commit": true,
"run_command": [
"-d",
@ -22,7 +25,7 @@
"[ -f /usr/bin/dnf ] && /usr/bin/dnf -y install ansible python2-dnf || true",
"[ ! -f /usr/bin/dnf -a -f /usr/bin/yum ] && /usr/bin/yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-`grep -o [0-9] /etc/redhat-release | head -1`.noarch.rpm || true",
"[ ! -f /usr/bin/dnf -a -f /usr/bin/yum ] && /usr/bin/yum -y install ansible || true",
"[ -f /usr/bin/apt-get ] && /usr/bin/apt-get update && /usr/bin/apt-get -y install ansible || true"
"[ -f /usr/bin/apt-get ] && /usr/bin/apt-get update && /usr/bin/apt-get -y install software-properties-common && /usr/bin/add-apt-repository ppa:ansible/ansible && /usr/bin/apt-get update && /usr/bin/apt-get -y install ansible || true"
]
},
{