mirror of
https://github.com/DO1JLR/ansible_linux_desktop_setup.git
synced 2024-09-14 19:54:51 +02:00
update playbooks
This commit is contained in:
parent
799b1d9e51
commit
3b1031b92f
3 changed files with 54 additions and 224 deletions
|
@ -1,122 +1,36 @@
|
||||||
---
|
---
|
||||||
- name: check if ansible is not to old
|
- name: check if ansible is not to old
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tags:
|
|
||||||
- default
|
|
||||||
- always
|
|
||||||
roles:
|
roles:
|
||||||
- ansible_version
|
- {role: ansible_version, tags: always, gather_facts: false}
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
- name: Install useful packages
|
- name: base packages setup
|
||||||
hosts: desk_minni
|
hosts: desk_minni.local
|
||||||
tags:
|
|
||||||
- packages
|
|
||||||
- updates
|
|
||||||
- setup
|
|
||||||
- workstation_packages
|
|
||||||
roles:
|
roles:
|
||||||
- workstation_packages
|
- {role: workstation_packages, tags: [base, packages, workstation]}
|
||||||
|
|
||||||
- name: enable and secure sshd
|
- name: user and ssh(d) setup
|
||||||
hosts: desk_minni
|
hosts: desk_minni.local
|
||||||
tags:
|
|
||||||
- secure
|
|
||||||
- ssh
|
|
||||||
- setup
|
|
||||||
roles:
|
roles:
|
||||||
- manage_users
|
- {role: manage_users, tags: [users, base]}
|
||||||
- authorized_keys
|
- {role: authorized_keys, tags: [auth, base]}
|
||||||
- sshd
|
- {role: sshd, tags: [sshd, base]}
|
||||||
|
- {role: dotfiles, tags: [dotfiles, base]}
|
||||||
|
|
||||||
- name: Install useful dotfiles
|
- name: fancy schnickschnack
|
||||||
hosts: desk_minni
|
hosts: desk_minni.local
|
||||||
tags:
|
|
||||||
- setup
|
|
||||||
roles:
|
roles:
|
||||||
- dotfiles
|
- {role: akku-warning, tags: akku}
|
||||||
|
- {role: pulseaudio, tags: [pulse, audio, pulseaudio]}
|
||||||
- name: set akku warning
|
- {role: networkmanager, tags: networkmanager, when: ansible_os_family == 'Archlinux'}
|
||||||
hosts: desk_minni
|
- {role: openvpn, tags: ovpn}
|
||||||
tags:
|
- {role: nextcloud, tags: nextcloud, when: ansible_os_family == 'Archlinux'}
|
||||||
- setup
|
- {role: bat, tags: bat, when: ansible_os_family == 'Debian'}
|
||||||
- akku
|
- {role: install-firefox, tags: firefox}
|
||||||
roles:
|
- {role: copy_files}
|
||||||
- akku-warning
|
- {role: i3wm, tags: i3wm}
|
||||||
|
- {role: ntp, tags: ntp}
|
||||||
- name: install modules for sound and bluetooth
|
- {role: xrandr, tags: xrandr}
|
||||||
hosts: desk_minni
|
- {role: arch-fonts, tags: fonts}
|
||||||
tags:
|
- {role: winehq, tags: wine}
|
||||||
- setup
|
- {role: no-sleep, tags: sleep}
|
||||||
- pulseaudio
|
|
||||||
- networkmanager
|
|
||||||
roles:
|
|
||||||
- pulseaudio
|
|
||||||
- networkmanager
|
|
||||||
|
|
||||||
- name: Install useful packages
|
|
||||||
hosts: desk_minni
|
|
||||||
tags:
|
|
||||||
- packages
|
|
||||||
- i3wm
|
|
||||||
- copy_files
|
|
||||||
- i3wm
|
|
||||||
- ntp
|
|
||||||
- xrandr
|
|
||||||
roles:
|
|
||||||
- copy_files
|
|
||||||
- i3wm
|
|
||||||
- ntp
|
|
||||||
- xrandr
|
|
||||||
- name: install some arch fonts
|
|
||||||
hosts: desk_minni
|
|
||||||
tags:
|
|
||||||
- arch
|
|
||||||
- firefox
|
|
||||||
- browser
|
|
||||||
- install-firefox
|
|
||||||
roles:
|
|
||||||
- install-firefox
|
|
||||||
|
|
||||||
- name: install nextcloud-client
|
|
||||||
hosts: desk_minni
|
|
||||||
tags:
|
|
||||||
- setup
|
|
||||||
- nextcloud
|
|
||||||
roles:
|
|
||||||
- nextcloud
|
|
||||||
|
|
||||||
- name: install some arch fonts
|
|
||||||
hosts: desk_minni
|
|
||||||
tags:
|
|
||||||
- arch
|
|
||||||
- font
|
|
||||||
- fonts
|
|
||||||
- schrift
|
|
||||||
roles:
|
|
||||||
- arch-fonts
|
|
||||||
|
|
||||||
- name: install openvpn
|
|
||||||
hosts: desk_minni
|
|
||||||
tags:
|
|
||||||
- vpn
|
|
||||||
- openvpn
|
|
||||||
roles:
|
|
||||||
- openvpn
|
|
||||||
|
|
||||||
- name: install winehq
|
|
||||||
hosts: desk_minni
|
|
||||||
tags:
|
|
||||||
- wine
|
|
||||||
- winehq
|
|
||||||
roles:
|
|
||||||
- winehq
|
|
||||||
|
|
||||||
- name: disable sleeping
|
|
||||||
hosts: desk_minni
|
|
||||||
tags:
|
|
||||||
- sleep
|
|
||||||
- suspend
|
|
||||||
- no-sleep
|
|
||||||
roles:
|
|
||||||
- no-sleep
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
- {role: akku-warning, tags: akku}
|
- {role: akku-warning, tags: akku}
|
||||||
- {role: pulseaudio, tags: [pulse, audio, pulseaudio]}
|
- {role: pulseaudio, tags: [pulse, audio, pulseaudio]}
|
||||||
- {role: networkmanager, tags: networkmanager, when: ansible_os_family == 'Archlinux'}
|
- {role: networkmanager, tags: networkmanager, when: ansible_os_family == 'Archlinux'}
|
||||||
|
- {role: openvpn, tags: ovpn}
|
||||||
- {role: nextcloud, tags: nextcloud, when: ansible_os_family == 'Archlinux'}
|
- {role: nextcloud, tags: nextcloud, when: ansible_os_family == 'Archlinux'}
|
||||||
- {role: bat, tags: bat, when: ansible_os_family == 'Debian'}
|
- {role: bat, tags: bat, when: ansible_os_family == 'Debian'}
|
||||||
- {role: install-firefox, tags: firefox}
|
- {role: install-firefox, tags: firefox}
|
||||||
|
|
139
setup_t460p.yml
139
setup_t460p.yml
|
@ -1,126 +1,41 @@
|
||||||
---
|
---
|
||||||
- name: check if ansible is not to old
|
- name: check if ansible is not to old
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tags:
|
|
||||||
- default
|
|
||||||
- always
|
|
||||||
roles:
|
roles:
|
||||||
- ansible_version
|
- {role: ansible_version, tags: always, gather_facts: false}
|
||||||
gather_facts: no
|
|
||||||
|
|
||||||
- name: avahi
|
- name: avahi
|
||||||
hosts: t460p
|
hosts: t460p.local
|
||||||
roles:
|
roles:
|
||||||
- {role: avahi_daemon, tags: [avahi_daemon, avahi, mdns], become: true}
|
- {role: avahi_daemon, tags: [avahi_daemon, avahi, mdns], become: true}
|
||||||
|
|
||||||
- name: Install useful packages
|
- name: base packages setup
|
||||||
hosts: t460p
|
hosts: t460p.local
|
||||||
tags:
|
|
||||||
- packages
|
|
||||||
- updates
|
|
||||||
- setup
|
|
||||||
roles:
|
roles:
|
||||||
- workstation_packages
|
- {role: workstation_packages, tags: [base, packages, workstation]}
|
||||||
|
|
||||||
- name: enable and secure sshd
|
- name: user and ssh(d) setup
|
||||||
hosts: t460p
|
hosts: t460.local
|
||||||
tags:
|
|
||||||
- secure
|
|
||||||
- ssh
|
|
||||||
- setup
|
|
||||||
roles:
|
roles:
|
||||||
- manage_users
|
- {role: manage_users, tags: [users, base]}
|
||||||
- authorized_keys
|
- {role: authorized_keys, tags: [auth, base]}
|
||||||
- sshd
|
- {role: sshd, tags: [sshd, base]}
|
||||||
|
- {role: dotfiles, tags: [dotfiles, base]}
|
||||||
|
|
||||||
- name: Install useful dotfiles
|
- name: fancy schnickschnack
|
||||||
hosts: t460p
|
hosts: t460.local
|
||||||
tags:
|
|
||||||
- setup
|
|
||||||
- dotfiles
|
|
||||||
roles:
|
roles:
|
||||||
- dotfiles
|
- {role: akku-warning, tags: akku}
|
||||||
|
- {role: pulseaudio, tags: [pulse, audio, pulseaudio]}
|
||||||
- name: set akku warning
|
- {role: networkmanager, tags: networkmanager, when: ansible_os_family == 'Archlinux'}
|
||||||
hosts: t460p
|
- {role: openvpn, tags: ovpn}
|
||||||
tags:
|
- {role: nextcloud, tags: nextcloud, when: ansible_os_family == 'Archlinux'}
|
||||||
- setup
|
- {role: bat, tags: bat, when: ansible_os_family == 'Debian'}
|
||||||
- akku
|
- {role: install-firefox, tags: firefox}
|
||||||
- akku-warning
|
- {role: copy_files}
|
||||||
roles:
|
- {role: i3wm, tags: i3wm}
|
||||||
- akku-warning
|
- {role: ntp, tags: ntp}
|
||||||
|
- {role: xrandr, tags: xrandr}
|
||||||
- name: install modules for sound and bluetooth
|
- {role: arch-fonts, tags: fonts}
|
||||||
hosts: t460p
|
- {role: winehq, tags: wine}
|
||||||
tags:
|
- {role: no-sleep, tags: sleep}
|
||||||
- setup
|
|
||||||
- pulseaudio
|
|
||||||
- networkmanager
|
|
||||||
roles:
|
|
||||||
- pulseaudio
|
|
||||||
- networkmanager
|
|
||||||
|
|
||||||
- name: install some arch fonts
|
|
||||||
hosts: t460p
|
|
||||||
tags:
|
|
||||||
- arch
|
|
||||||
- firefox
|
|
||||||
- browser
|
|
||||||
- install-firefox
|
|
||||||
roles:
|
|
||||||
- install-firefox
|
|
||||||
|
|
||||||
- name: Install useful packages
|
|
||||||
hosts: t460p
|
|
||||||
tags:
|
|
||||||
- packages
|
|
||||||
- i3wm
|
|
||||||
roles:
|
|
||||||
- copy_files
|
|
||||||
- i3wm
|
|
||||||
- ntp
|
|
||||||
- xrandr
|
|
||||||
|
|
||||||
- name: OVPN
|
|
||||||
hosts: t460p
|
|
||||||
tags:
|
|
||||||
- vpn
|
|
||||||
- ovpn
|
|
||||||
- openvpn
|
|
||||||
roles:
|
|
||||||
- openvpn
|
|
||||||
|
|
||||||
- name: install nextcloud-client
|
|
||||||
hosts: t460p
|
|
||||||
tags:
|
|
||||||
- setup
|
|
||||||
- nextcloud
|
|
||||||
roles:
|
|
||||||
- nextcloud
|
|
||||||
|
|
||||||
- name: install some arch fonts
|
|
||||||
hosts: t460p
|
|
||||||
tags:
|
|
||||||
- arch
|
|
||||||
- font
|
|
||||||
- fonts
|
|
||||||
- schrift
|
|
||||||
roles:
|
|
||||||
- arch-fonts
|
|
||||||
|
|
||||||
- name: install winehq
|
|
||||||
hosts: t460p
|
|
||||||
tags:
|
|
||||||
- wine
|
|
||||||
- winehq
|
|
||||||
roles:
|
|
||||||
- winehq
|
|
||||||
|
|
||||||
- name: disable sleeping
|
|
||||||
hosts: t460p
|
|
||||||
tags:
|
|
||||||
- sleep
|
|
||||||
- suspend
|
|
||||||
- no-sleep
|
|
||||||
roles:
|
|
||||||
- no-sleep
|
|
||||||
|
|
Loading…
Reference in a new issue