forked from SoaadMahmoud/Pipeline-as-a-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeascode.j2
33 lines (32 loc) · 832 Bytes
/
pipeascode.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
format_version: 9
pipelines:
{{ item.1.name }}:
group: {{ item.1.group }}
label_template: ${COUNT}
lock_behavior: none
display_order: -1
materials:
git:
git: https://{{ item.1.giturl }}
username: {{ item.1.githubuser }}
shallow_clone: false
auto_update: true
branch: master
encrypted_password: {{ item.1.githubpassword }}
stages:
- installapache:
fetch_materials: true
keep_artifacts: false
clean_workspace: false
approval:
type: success
allow_only_on_success: false
jobs:
installapache:
timeout: 0
tasks:
- exec:
arguments:
- httpd.yml
command: ansible-playbook
run_if: passed