mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 00:30:18 +01:00
Change order in build process
This commit is contained in:
parent
0060d6d1c8
commit
5260215d28
2 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
|
|||
# Install Ansible inventory file
|
||||
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts
|
||||
COPY requirements.yml /etc/ansible/requirements.yml
|
||||
COPY test.yml /etc/ansible/test.yml
|
||||
RUN ansible-galaxy install -r /etc/ansible/requirements.yml
|
||||
COPY test.yml /etc/ansible/test.yml
|
||||
VOLUME [ "/sys/fs/cgroup" ]
|
||||
CMD ["/usr/sbin/init"]
|
||||
|
||||
|
|
|
@ -7,6 +7,6 @@ RUN apt-get install -y ansible
|
|||
# Install Ansible inventory file
|
||||
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
|
||||
COPY requirements.yml /etc/ansible/requirements.yml
|
||||
COPY test.yml /etc/ansible/test.yml
|
||||
RUN ansible-galaxy install -r /etc/ansible/requirements.yml
|
||||
COPY test.yml /etc/ansible/test.yml
|
||||
|
||||
|
|
Loading…
Reference in a new issue