This repository has been archived by the owner on Jan 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
unattended.yml
49 lines (49 loc) · 1.46 KB
/
unattended.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
---
- name: full os setup
hosts: localhost
gather_facts: true
pre_tasks:
- name: include vars
tags: always
include_vars:
dir: vars
- name: prevent system from suspending during execution (battery)
tags: always
command: gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type nothing
- name: prevent system from suspending during execution (ac)
tags: always
command: gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type nothing
tasks:
- name: import applications role
tags:
- apps
- roles
import_role:
name: applications
- name: import setup role
tags:
- setup
- settings
- roles
import_role:
name: setup
- name: import preferences role
tags:
- preferences
- prefs
- roles
import_role:
name: preferences
post_tasks:
- name: remove 2nd phase cron job
cron:
state: absent
user: root
name: "fedora setup phase 2"
cron_file: fedora_setup_2
- name: restore settings to suspend when inactive (battery)
tags: always
command: gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type suspend
- name: restore settings to suspend when inactive (ac)
tags: always
command: gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type suspend