playbook/build-docker: using shell as the docker module is not available

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmüller 2023-06-13 13:20:51 +02:00
parent 29e807db1b
commit b25d6f32d3
1 changed files with 5 additions and 5 deletions

View File

@ -4,8 +4,8 @@
root_path: "~/nwl-ci"
tasks:
- name: Build the Jenkins Image
community.docker.docker_image:
name: nwl-jenkins
build:
path: "{{root_path}}/docker"
source: build
ansible.builtin.shell: |
docker build -t jenkins:nwl-0.0.1 .
args:
chdir: "{{root_path}}/docker"
executable: /bin/bash