Skip to content

Commit

Permalink
Ensure ansible directory exists for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Mar 8, 2016
1 parent 0f4a705 commit d8e7723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Dockerfile.centos-6
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN pip install ansible
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers

# Install Ansible inventory file
RUN mkdir - p /etc/ansible
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts

CMD ["/usr/sbin/init"]
1 change: 1 addition & 0 deletions tests/Dockerfile.centos-7
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN pip install ansible
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers

# Install Ansible inventory file
RUN mkdir - p /etc/ansible
RUN echo -e '[local]\nlocalhost ansible_connection=local' > /etc/ansible/hosts

VOLUME ["/sys/fs/cgroup"]
Expand Down

0 comments on commit d8e7723

Please sign in to comment.