-
Notifications
You must be signed in to change notification settings - Fork 1
/
silverblue37.yml
69 lines (62 loc) · 1.61 KB
/
silverblue37.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
59
60
61
62
63
64
65
66
67
68
69
---
# NOTE: This system must first be bootstrapped with the following:
#
# sudo rpm-ostree install tmux vim-enhanced xsel virt-manager libvirt-client gnome-tweaks
- name: Fedora 37 Silverblue
hosts: localhost
become: true
vars:
non_root_user: admiller
rpmfusion_free: no
rpmfusion_nonfree: no
silverblue: yes
flatpak_method: system
tasks:
- name: Ensure SELinux Enforcing
selinux:
policy: targeted
state: enforcing
- name: Disable ssh and rpcbind because reasons
systemd:
name: "{{ item }}"
state: stopped
masked: true
enabled: false
loop:
- sshd
- rpcbind
- name: Ensure various ports are not open
firewalld:
service: "{{ item }}"
permanent: yes
immediate: yes
state: disabled
loop:
- cockpit
- ssh
- name: Allow non-root user access to libvirt via polkit
template:
src: templates/non_root_user_libvirt_polkit.j2
dest: /etc/polkit-1/rules.d/50-org.libvirt.unix.manage.rules
notify:
- reload polkit
- name: enable journald persistent storage
file:
path: /var/log/journal
state: directory
- name: import flatpak app task set
ansible.builtin.import_tasks: include_tasks/flatpak_install.yml
handlers:
- name: reload polkit
service:
name: polkit
state: restarted
- name: User Stuff
hosts: localhost
become_user: admiller
become: true
vars:
flatpak_method: system
tasks:
- name: import user stuff
import_tasks: include_tasks/user_stuff.yml