|
- name: Build Jenkins Docker Image
|
|
hosts: linux
|
|
gather_facts: false
|
|
vars:
|
|
root_path: "~/nwl-ci"
|
|
tasks:
|
|
- name: Build the Jenkins Image
|
|
register: buildDocker
|
|
ansible.builtin.shell: |
|
|
docker build -t jenkins:nwl-0.0.1 .
|
|
args:
|
|
chdir: "{{root_path}}/docker"
|
|
executable: /bin/bash
|