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
/
site.yml
75 lines (75 loc) · 2.17 KB
/
site.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
70
71
72
73
74
75
---
- name: full os setup
hosts: localhost
gather_facts: true
vars_prompt:
- name: ansible_become_pass
prompt: "[sudo] Enter password for the user"
private: true
unsafe: true
pre_tasks:
- name: validate auth
tags: always
become: true
dnf:
state: present
name: dnf
timeout: 120
- 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: flush handlers
tags: always
meta: flush_handlers
- name: import setup role
tags:
- setup
- settings
- roles
import_role:
name: setup
- name: flush handlers
tags: always
meta: flush_handlers
- name: import preferences role
tags:
- preferences
- prefs
- roles
import_role:
name: preferences
- name: flush handlers
tags: always
meta: flush_handlers
post_tasks:
- name: setup cron job to run phase 2 after reboot
become: true
tags:
- cron
cron:
state: present
user: root
name: "fedora setup phase 2"
special_time: reboot
cron_file: fedora_setup_2
job: "ansible-pull -U https://github.com/{{ github.ansible_bootstrap }} unattended.yml --tags 'round2' --extra-vars 'user={{ user }}'"
- 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