buildah/tests/roles/prepare-env/tasks/main.yml
Lokesh Mandvekar 5cce5a1ada Revert "buildah-0.16-2.git4743c2e"
This reverts commit 61290b1bc7
since it removed the tests/ dir, which is obviously unwanted behavior.
2018-04-07 23:03:14 -04:00

42 lines
1.0 KiB
YAML

---
- name: install required packages for testings
package:
name: "{{ item }}"
state: latest
with_items:
- docker
- python-docker-py
- buildah
- docker-distribution
- ostree
- httpd
- libselinux-python
- name: start docker daemon
systemd: state=started name=docker
- name: create /ostree/repo
file: path=/ostree/repo state=directory
- name: ensure docker-distribution service is running
systemd: state=started name=docker-distribution
- name: creates directory buildah testing
file: path=/tmp/buildah/bud state=directory
- name: download Dockerfile
get_url:
url: https://github.com/fedora-cloud/Fedora-Dockerfiles/raw/master/nginx/Dockerfile
dest: /tmp/buildah/bud/Dockerfile
- name: creates a bud directory in /var/www/html
file: path=/var/www/html/bud state=directory
- name: archive dockerfile into httpd directory
command: tar zcvf /var/www/html/bud/Dockerfile.tar.gz Dockerfile
args:
chdir: /tmp/buildah/bud
- name: start httpd service
systemd: state=started name=httpd