-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
51 lines (47 loc) · 1.02 KB
/
main.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
---
- name: Playbook desktop start
hosts: all
become: true
become_user: root
become_method: sudo
gather_facts: true
#tasks:
#- include_tasks: tasks/main.yml
pre_tasks:
- name: Set home directory fact
set_fact:
home_dir: "{{ ansible_env['PWD'] }}"
- name: Set local user fact
set_fact:
local_user: "{{ ansible_user }}"
- name: Get user's primary group name
command: "id -gn {{ ansible_env.SUDO_USER | default(ansible_user_id) }}"
register: global_primary_group
changed_when: false
- name: Set user's primary group fact
set_fact:
local_user_primary_group: "{{ global_primary_group.stdout }}"
roles:
- auto-update
- base
- aws
- brave
- chrome
# - docker-cli-only
- docker-desktop-dependency
- gh_cli
- hashicorp
- keepassxc
- kubectl
- microsoft
- opera
- signal-desktop
- sublime-text
- trivy
- ufw
- role: vim
become: false
- role: env
become: false
- disable-local-dns
# - yubico