mirror of
https://github.com/DO1JLR/ansible_linux_desktop_setup.git
synced 2024-09-14 19:54:51 +02:00
update ansible for workstation
This commit is contained in:
parent
3b1031b92f
commit
e9fbe8fdcb
11 changed files with 80 additions and 15 deletions
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -58,9 +58,9 @@
|
|||
[submodule "roles/bat"]
|
||||
path = roles/bat
|
||||
url = https://github.com/gantsign/ansible_role_bat.git
|
||||
[submodule "roles/avahi_daemon"]
|
||||
path = roles/avahi_daemon
|
||||
url = git@git.ccczh.ch:ansible-roles/role-avahi_daemon.git
|
||||
[submodule "roles/amdgpu_firmware"]
|
||||
path = roles/amdgpu_firmware
|
||||
url = https://github.com/DO1JLR/ansible_role_amdgpu_firmware.git
|
||||
[submodule "roles/do1jlr.avahi"]
|
||||
path = roles/do1jlr.avahi_daemon
|
||||
url = https://github.com/roles-ansible/ansible_role_avahi_daemon.git
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[defaults]
|
||||
inventory = ./ansible/hosts.ini
|
||||
inventory = ./hosts.ini
|
||||
retry_files_enabled = False
|
||||
nocows = True
|
||||
ansible_connection = 'local'
|
||||
|
@ -9,7 +9,3 @@ become_method = sudo
|
|||
become_user = root
|
||||
become_ask_pass = False
|
||||
|
||||
#[ssh_connection]
|
||||
#pipelining = True
|
||||
#control_path = /tmp/ansible-ssh-%%h-%%p-%%r
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[thinkpad]
|
||||
t460p ansible_host='localhost' ansible_connection='local'
|
||||
desk_minni ansible_connection='local'
|
||||
l14.local ansible_connection='local'
|
27
host_vars/workstation.local.yml
Normal file
27
host_vars/workstation.local.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
avahi_packages:
|
||||
- nss-mdns
|
||||
- avahi
|
||||
|
||||
# local user config:
|
||||
users:
|
||||
l3d:
|
||||
- l3d@derpy.l3d.yt
|
||||
- l3d@mobile.l3d.yt
|
||||
- l3d@pinkie.l3d.yt
|
||||
- l3d@business.wingcon.com
|
||||
- l3d@backup-rsa.l3d.yt
|
||||
- l3d@backup.l3d.yt
|
||||
|
||||
admins:
|
||||
- l3d
|
||||
|
||||
accounts:
|
||||
- l3d
|
||||
|
||||
akku_user: "l3d"
|
||||
|
||||
copy_to_user: "{{ akku_user }}"
|
||||
|
||||
wine_user: "{{ akku_user }}"
|
||||
wine_user_home: "/home/{{ akku_user }}"
|
5
hosts.ini
Normal file
5
hosts.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[thinkpad]
|
||||
t460p.local ansible_connection='local'
|
||||
desk_minni.local ansible_connection='local'
|
||||
l14.local ansible_connection='local'
|
||||
workstation.local ansible_connection='local'
|
|
@ -1 +0,0 @@
|
|||
Subproject commit f522c956f54ac95d1d02c017c24841cc1516bcfd
|
1
roles/do1jlr.avahi_daemon
Submodule
1
roles/do1jlr.avahi_daemon
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 2ccf720db227eab67121ff8ed512c62f34452d28
|
|
@ -15,7 +15,7 @@
|
|||
- {role: workstation_packages, tags: [base, packages, workstation]}
|
||||
|
||||
- name: user and ssh(d) setup
|
||||
hosts: t460.local
|
||||
hosts: t460p.local
|
||||
roles:
|
||||
- {role: manage_users, tags: [users, base]}
|
||||
- {role: authorized_keys, tags: [auth, base]}
|
||||
|
@ -23,7 +23,7 @@
|
|||
- {role: dotfiles, tags: [dotfiles, base]}
|
||||
|
||||
- name: fancy schnickschnack
|
||||
hosts: t460.local
|
||||
hosts: t460p.local
|
||||
roles:
|
||||
- {role: akku-warning, tags: akku}
|
||||
- {role: pulseaudio, tags: [pulse, audio, pulseaudio]}
|
||||
|
|
41
setup_workstation.yml
Normal file
41
setup_workstation.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
- name: check if ansible is not to old
|
||||
hosts: localhost
|
||||
roles:
|
||||
- {role: ansible_version, tags: always, gather_facts: false}
|
||||
|
||||
- name: avahi
|
||||
hosts: workstation.local
|
||||
roles:
|
||||
- {role: do1jlr.avahi_daemon, tags: [avahi_daemon, avahi, mdns], become: true}
|
||||
|
||||
- name: base packages setup
|
||||
hosts: workstation.local
|
||||
roles:
|
||||
- {role: workstation_packages, tags: [base, packages, workstation]}
|
||||
|
||||
- name: user and ssh(d) setup
|
||||
hosts: workstation.local
|
||||
roles:
|
||||
- {role: manage_users, tags: [users, base]}
|
||||
- {role: authorized_keys, tags: [auth, base]}
|
||||
- {role: sshd, tags: [sshd, base]}
|
||||
- {role: dotfiles, tags: [dotfiles, base]}
|
||||
|
||||
- name: fancy schnickschnack
|
||||
hosts: workstation.local
|
||||
roles:
|
||||
- {role: akku-warning, tags: akku}
|
||||
- {role: pulseaudio, tags: [pulse, audio, pulseaudio]}
|
||||
- {role: networkmanager, tags: networkmanager, when: ansible_os_family == 'Archlinux'}
|
||||
- {role: openvpn, tags: ovpn}
|
||||
- {role: nextcloud, tags: nextcloud, when: ansible_os_family == 'Archlinux'}
|
||||
- {role: bat, tags: bat, when: ansible_os_family == 'Debian'}
|
||||
- {role: install-firefox, tags: firefox}
|
||||
- {role: copy_files}
|
||||
- {role: i3wm, tags: i3wm}
|
||||
- {role: ntp, tags: ntp}
|
||||
- {role: xrandr, tags: xrandr}
|
||||
- {role: arch-fonts, tags: fonts}
|
||||
- {role: winehq, tags: wine}
|
||||
- {role: no-sleep, tags: sleep}
|
Loading…
Reference in a new issue