1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_linux_desktop_setup.git synced 2024-09-14 19:54:51 +02:00

try to create global playbook...

This commit is contained in:
L3D 2020-12-16 17:35:28 +01:00 committed by Lilian Roller
parent 42502e4a08
commit 04567deb73
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
5 changed files with 101 additions and 55 deletions

3
.gitmodules vendored
View file

@ -52,3 +52,6 @@
[submodule "roles/ansible_version"] [submodule "roles/ansible_version"]
path = roles/ansible_version path = roles/ansible_version
url = https://github.com/chaos-bodensee/role-ansible_version.git url = https://github.com/chaos-bodensee/role-ansible_version.git
[submodule "roles/base"]
path = roles/base
url = https://github.com/roles-ansible/ansible_role_base.git

View file

@ -1,4 +1,66 @@
--- ---
#
# roles/dotfiles
#
# enable keychain as ssh agent
dotfiles__additional_user_bashrc_lines:
- eval $(keychain --eval --quiet id_ed25519)
# roles/authorized_keys
#
# define dir for ssh keys
ssh_public_key_store: 'admin_ssh_keys'
i3_keybindings_extra:
- keybinding:
name: Volume (mute/unmute)
key: $mod+F12
exec: --no-startup-id pulsemixer --toggle-mute
- keybinding:
name: Volue (default)
key: $mod+Shift+F12
exec: --no-startup-id pulsemixer --set-volume 42
- keybinding:
name: volume-up
key: XF86AudioRaiseVolume
exec: --no-startup-id pulsemixer --change-volume +3
- keybinding:
name: volume-down
key: XF86AudioLowerVolume
exec: --no-startup-id pulsemixer --change-volume -5
- keybinding:
name: darker
key: XF86AudioMute
exec: --no-startup-id pulsemixer --toggle-mute
- keybinding:
name: darker
key: XF86MonBrightnessDown
exec: --no-startup-id sudo light -U 9
- keybinding:
name: lighter
key: XF86MonBrightnessUp
exec: --no-startup-id sudo light -A 6
i3_applications:
- application:
class: "firefox"
name: "firefox"
workspace: 2
on_startup: true
- application:
class: "Thunderbird"
name: "thunderbird"
workspace: 9
on_startup: true
i3_run_on_startup:
- nextcloud
- sudo nm-applet
# globaly enably simple versionscheck - if available # globaly enably simple versionscheck - if available
submodules_versioncheck: true submodules_versioncheck: true

View file

@ -1,17 +1,9 @@
--- ---
#
# roles/dotfiles
#
# enable keychain as ssh agent
dotfiles__additional_user_bashrc_lines:
- eval $(keychain --eval --quiet id_ed25519)
# legacy, maybe used # legacy, maybe used
# some ssh role parameters # some ssh role parameters
ssh_public_key_store: 'admin_ssh_keys'
home_sweet_home: false home_sweet_home: false
install_keychain: true install_keychain: true
# i3wm config: # i3wm config:
@ -30,53 +22,6 @@ i3_packages_extra:
- evince - evince
- speedtest-cli - speedtest-cli
i3_keybindings_extra:
- keybinding:
name: Volume (mute/unmute)
key: $mod+F12
exec: --no-startup-id pulsemixer --toggle-mute
- keybinding:
name: Volue (default)
key: $mod+Shift+F12
exec: --no-startup-id pulsemixer --set-volume 42
- keybinding:
name: volume-up
key: XF86AudioRaiseVolume
exec: --no-startup-id pulsemixer --change-volume +3
- keybinding:
name: volume-down
key: XF86AudioLowerVolume
exec: --no-startup-id pulsemixer --change-volume -5
- keybinding:
name: darker
key: XF86AudioMute
exec: --no-startup-id pulsemixer --toggle-mute
- keybinding:
name: darker
key: XF86MonBrightnessDown
exec: --no-startup-id sudo light -U 9
- keybinding:
name: lighter
key: XF86MonBrightnessUp
exec: --no-startup-id sudo light -A 6
i3_applications:
- application:
class: "firefox"
name: "firefox"
workspace: 2
on_startup: true
- application:
class: "Thunderbird"
name: "thunderbird"
workspace: 9
on_startup: true
i3_run_on_startup:
- nextcloud
- sudo nm-applet
i3_font_size: 11 i3_font_size: 11
i3_focus_follows_mouse: true i3_focus_follows_mouse: true

1
roles/base Submodule

@ -0,0 +1 @@
Subproject commit ca00bca0f102e754e68b4b77249f4c6a0ebd0638

35
site.yml Normal file
View file

@ -0,0 +1,35 @@
---
- name: check if ansible is not to old
hosts: localhost
tags:
- default
roles:
- ansible_version
gather_facts: no
- name: run base setup roles
hosts: localhost
roles:
- { role: base, tags: [default,packages,base]}
- { role: workstation_packages, tags: [default, workstation_packages, packages, setup]}
- { role: ntp, tags: ntp }
- { role: arch-fonts, tags: [font,fonts,arch-fonts]}
- name: user specific setup
hosts: localhost
roles:
- { role: dotfiles, tags: [default,dotfiles,fancy]}
- { role: manage_users, tags: [ssh,manage,manage_users]}
- { role: authorized_keys, tags: [ssh,auth,authorized_keys]}
- { role: sshd, tags: [ssh, sshd]}
- { role: akku-warning, tags: [akku,akku_warning,akku-warning]}
- { role: pulseaudio, tags: pulseaudio }
- { role: networkmanager, tags: [nm, networkmanager]}
- { role: copy_files }
- { role: i3wm, tags: i3wm }
- { role: xrandr, tags: xrandr }
- { role: install-firefox, tags: firefox }
- { role: nextcloud, tags: nextcloud }
- { role: openvpn, tags: openvpn }
- { role: winehq, tags: [wine, winehq]}
- { role: no-sleep, tags: no_sleep }