diff options
Diffstat (limited to 'tests/roles/prepare-env/tasks/main.yml')
-rw-r--r-- | tests/roles/prepare-env/tasks/main.yml | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/tests/roles/prepare-env/tasks/main.yml b/tests/roles/prepare-env/tasks/main.yml index bc46794..ff92b87 100644 --- a/tests/roles/prepare-env/tasks/main.yml +++ b/tests/roles/prepare-env/tasks/main.yml @@ -11,6 +11,9 @@ - ostree - httpd - libselinux-python + - golang + - make + - libseccomp-devel - name: start docker daemon systemd: state=started name=docker @@ -21,21 +24,32 @@ - name: ensure docker-distribution service is running systemd: state=started name=docker-distribution -- name: creates directory buildah testing +- name: create tmp directory for buildah testing file: path=/tmp/buildah/bud state=directory -- name: download Dockerfile +- name: download Dockerfile for hello-world from github get_url: - url: https://github.com/fedora-cloud/Fedora-Dockerfiles/raw/master/nginx/Dockerfile + url: https://raw.githubusercontent.com/docker-library/hello-world/master/amd64/hello-world/Dockerfile dest: /tmp/buildah/bud/Dockerfile + force: yes -- name: creates a bud directory in /var/www/html +- name: download hello for the Dockerfile + get_url: + url: https://github.com/docker-library/hello-world/raw/master/amd64/hello-world/hello + dest: /tmp/buildah/bud/hello + force: yes + mode: 0755 + +- name: create 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 + command: tar zcvf /var/www/html/bud/Dockerfile.tar.gz Dockerfile hello args: chdir: /tmp/buildah/bud + # Disables the following warning: + # Consider using unarchive module rather than running tar + warn: no - name: start httpd service systemd: state=started name=httpd |