websoft9/scripts/dockerfile

18 lines
449 B
Text
Raw Normal View History

2021-12-20 03:03:35 +00:00
FROM ansible/ansible:centos7
LABEL Description="DevOps for ansible runtime" Vendor="Websoft9" Version="1.0.0"
WORKDIR "/ansible"
# Install ansible
RUN yum install ansible -y
# Install role_common
RUN git clone https://github.com/Websoft9/role_common
RUN ansible-playbook role_common/tests/test.yml
# download template of role, it's to run the tasks of you want to test
2021-12-20 03:09:33 +00:00
RUN git clone https://github.com/Websoft9/role_template
2021-12-20 03:03:35 +00:00
VOLUME "/ansible"