Add optional step of preparing ansible server
This commit is contained in:
1 parent
3b6780360c
commit
45e509506b
2 files changed
+7
No files matched your search
Vendored
+1
@@ -30,6 +30,7 @@ pipeline {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'ansible-server-key', keyFileVariable: 'keyfile', usernameVariable: 'user')]){
|
||||
remote.user = user
|
||||
remote.identityFile = keyfile
|
||||
sshScript remote: remote, script: "prepare-ansible-server.sh"
|
||||
sshCommand remote: remote, command: "ansible-playbook my-playbook.yaml"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user