Add argument to find the ansible files.

This commit is contained in:
James Pace 2022-12-27 08:42:36 -05:00
parent 5dc94a6d69
commit 33362af07c
2 changed files with 4 additions and 1 deletions

View File

@ -48,5 +48,7 @@ spec:
params:
- name: deploy
value: $(params.deploy)
- name: ansible-file-path
value: .
taskRef:
name: j7s-ansible-build

View File

@ -8,6 +8,7 @@ spec:
- name: ssh-directory
params:
- name: deploy
- name: ansible-file-path
steps:
- image: 192.168.1.128:8443/ansible-podman:latest
securityContext:
@ -20,7 +21,7 @@ spec:
chmod -R 400 ~/.ssh/*
cd $(workspaces.source.path)
ansible-playbook -vvvv --skip-tags deploy -i inventory.yaml build.yaml
ansible-playbook -vvvv --skip-tags deploy -i $(params.ansible-file-path)/inventory.yaml $(params.ansible-file-path)/build.yaml
if [[ $(params.deploy) == "true" ]]; then
ansible-playbook -vvvv --tags deploy -i inventory.yaml build.yaml