Add argument to find the ansible files.

This commit is contained in:
jimmy committed 2022-12-27 08:42:36 -05:00
1 parent 5dc94a6d69
commit 33362af07c
2 files changed
+4 -1

No files matched your search

+2 -1
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