-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathv1-install-cockpit-and-ib.yml
More file actions
61 lines (49 loc) · 1.14 KB
/
v1-install-cockpit-and-ib.yml
File metadata and controls
61 lines (49 loc) · 1.14 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
---
- name: "Setuping up Cockpit and Image Builder on the host"
hosts: localhost
connection: local
become: true
gather_facts: true
tasks:
- name: Update packages on machine
yum:
name: '*'
state: latest
- name: Change SElinux privileges
selinux:
policy: targeted
state: permissive
- name: Install packages required for Cockpit and IB
yum:
name: "{{ packages }}"
vars:
packages:
- lorax-composer
- cockpit-composer
- composer-cli
- firewalld
- name: Start and enable lorax-composer service
systemd:
name: lorax-composer.socket
state: started
enabled: yes
- name: Start and enable cockpit service
systemd:
name: cockpit.socket
state: started
enabled: yes
- name: Setup Firewalld
firewalld:
service: cockpit
permanent: yes
state: enabled
- name: Locating username on host machine
shell: whoami
register: current_user
- debug:
var: current_user
verbosity: 2
- name: Adding user to Weldr group
user:
name: "{{ current_user.stdout }}"
group: weldr