-
Notifications
You must be signed in to change notification settings - Fork 9
/
jenkins.yml
58 lines (52 loc) · 1.37 KB
/
jenkins.yml
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
---
- hosts: "{{ hosts_group_name | default('localhost') }}"
gather_facts: yes
become: yes
become_user: root
vars_files:
- vars/vault.yml
- vars/olympus.yml
- vars/component-alignment.yml
- vars/aphrodite.yml
- vars/jobs.yml
- vars/mailer.yml
pre_tasks:
- name: "Install hvac python library"
ansible.builtin.pip:
name: hvac>=1.2.1
executable: pip3
- name: "Load Secrets from Vault"
ansible.builtin.include_role:
name: "vault"
- name: Register
redhat_subscription:
state: present
username: "{{ cci_worker_rhel_subscription_username }}"
password: "{{ cci_worker_rhel_subscription_password }}"
autosubscribe: yes
when:
- cci_worker_rhel_subscription_password is defined
- cci_worker_rhel_subscription_username is defined
- name: Update yum
yum:
name: "*"
state: latest
- ansible.builtin.include_role:
name: fast_yum_install
vars:
package_name: "{{ pretaskfiles }}"
with_items:
- firewalld
- zip
loop_control:
loop_var: pretaskfiles
tasks:
- ansible.builtin.include_role:
name: "{{ taskfiles }}"
with_items:
- old_releases
- component_alignment
- pr_processor
- aphrodite
loop_control:
loop_var: taskfiles