From c7c7aec89bcf8632dc6ef10dbde13535abc36f9f Mon Sep 17 00:00:00 2001 From: Mark Stosberg Date: Tue, 27 Mar 2018 21:33:51 -0400 Subject: [PATCH] Add passing test for Ubuntu 18.04 + Ansible 2.5.0. To minizing testing time, I didn't add all the other possible combinations of OS version and Ansible version involving Ubuntu 18.04 and Ansible 2.5.0. --- run-local-tests.sh | 2 ++ tests/Dockerfile.ubuntu-18.04.ansible-2.5.0.0 | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/Dockerfile.ubuntu-18.04.ansible-2.5.0.0 diff --git a/run-local-tests.sh b/run-local-tests.sh index 2f46b73..59a350c 100755 --- a/run-local-tests.sh +++ b/run-local-tests.sh @@ -22,6 +22,8 @@ run_test ubuntu 14.04 2.3.0.0 run_test ubuntu 16.04 2.2.2.0 run_test ubuntu 16.04 2.3.0.0 +run_test ubuntu 18.04 2.5.0.0 + run_test centos 6 2.2.2.0 run_test centos 6 2.3.0.0 diff --git a/tests/Dockerfile.ubuntu-18.04.ansible-2.5.0.0 b/tests/Dockerfile.ubuntu-18.04.ansible-2.5.0.0 new file mode 100644 index 0000000..61c623c --- /dev/null +++ b/tests/Dockerfile.ubuntu-18.04.ansible-2.5.0.0 @@ -0,0 +1,13 @@ +FROM ubuntu:18.04 +RUN apt-get update + +# Install OpenSSH server +RUN apt-get install -y openssh-server + +# Install Ansible +RUN apt-get install -y software-properties-common git python-pip python-dev libffi-dev libssl-dev +RUN pip install -U setuptools +RUN pip install 'ansible==2.5.0.0' + +# Install Ansible inventory file +RUN mkdir /etc/ansible/ && echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts