Skip to content

Commit

Permalink
Add k8s-ansible.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
ikambarov committed Feb 15, 2022
1 parent 88a0472 commit 42d2e73
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Aug-2021/k8s-ansible.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
podyaml = '''
metadata:
labels:
run: ansible
name: ansible
spec:
containers:
- args:
- sleep
- "1000000"
image: ikambarov/ansible:latest
name: ansible
'''

podTemplate(cloud: 'kubernetes', label: 'ansible', name: 'ansible', namespace: 'jenkins', yaml: podyaml, showRawYaml: false) {
node('ansible'){
container('ansible'){
stage("Test"){
sh "ansible --version"
}
}
}
}

0 comments on commit 42d2e73

Please sign in to comment.