-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathmain.yml
More file actions
69 lines (64 loc) · 1.66 KB
/
main.yml
File metadata and controls
69 lines (64 loc) · 1.66 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible.json#/$defs/tasks
- name: Create .github directories
file:
path: "/tmp/{{ item }}"
state: directory
owner: "abc"
group: "abc"
mode: "0755"
loop:
- .github/ISSUE_TEMPLATE
- .github/workflows
- name: Populate Github workflows
template:
src: "{{ item }}.j2"
dest: "/tmp/.github/workflows/{{ item }}"
owner: "abc"
group: "abc"
mode: "0644"
loop:
- call_issue_pr_tracker.yml
- call_issues_cron.yml
- external_trigger_scheduler.yml
- external_trigger.yml
- greetings.yml
- package_trigger_scheduler.yml
- permissions.yml
- name: Populate conditional Github workflows
when: item.when | ternary(True, False)
template:
src: "{{ item.file }}.j2"
dest: "/tmp/.github/workflows/{{ item.file }}"
owner: "abc"
group: "abc"
mode: "0644"
loop:
- file: package_trigger_scheduler.yml
when: custom_package_trigger != true
- file: external_trigger_scheduler.yml
when: custom_external_trigger != true
- file: external_trigger.yml
when: custom_external_trigger != true
- name: Populate Github issue templates
template:
src: "{{ item }}.j2"
dest: "/tmp/.github/ISSUE_TEMPLATE/{{ item }}"
owner: "abc"
group: "abc"
mode: "0644"
loop:
- issue.bug.yml
- config.yml
- issue.feature.yml
- name: Populate Github metadata
template:
src: "{{ item }}.j2"
dest: "/tmp/.github/{{ item }}"
owner: "abc"
group: "abc"
mode: "0644"
loop:
- CONTRIBUTING.md
- FUNDING.yml
- PULL_REQUEST_TEMPLATE.md