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

Split roles to different modells

This commit is contained in:
Lilian Roller 2019-04-24 09:19:13 +02:00
parent c30e7d1df1
commit f53a1476f2
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
10 changed files with 176 additions and 18 deletions

3
.gitmodules vendored
View file

@ -7,9 +7,6 @@
[submodule "roles/dotfiles"] [submodule "roles/dotfiles"]
path = roles/dotfiles path = roles/dotfiles
url = https://github.com/DO1JLR/role_dotfiles.git url = https://github.com/DO1JLR/role_dotfiles.git
[submodule "roles/firefox"]
path = roles/firefox
url = https://github.com/maxbachmann-ansible/role-firefox.git
[submodule "roles/pulseaudio"] [submodule "roles/pulseaudio"]
path = roles/pulseaudio path = roles/pulseaudio
url = https://github.com/DO1JLR/role_pulseaudio_archlinux.git url = https://github.com/DO1JLR/role_pulseaudio_archlinux.git

View file

@ -1,5 +1,5 @@
[defaults] [defaults]
inventory = ./ansible/hosts inventory = ./ansible/hosts.ini
retry_files_enabled = False retry_files_enabled = False
nocows = True nocows = True
transport = local transport = local

View file

@ -1,2 +0,0 @@
[thinkpad]
t460p ansible_host="localhost" ansible_connection=local

4
ansible/hosts.ini Normal file
View file

@ -0,0 +1,4 @@
[thinkpad]
t460p ansible_host='localhost' ansible_connection='local'
idesk_minni ansible_host='localhost' ansible_connection='local'
l460 ansible_host='localhost' ansible_connection='local'

@ -1 +1 @@
Subproject commit 63951429e0b64674f9fba3f4fa2d278b4a1391d5 Subproject commit 0eb12deab6559ff2fe8c026cb3e1874b49dddedc

View file

@ -1,5 +1,5 @@
--- ---
# flobal user config: # local user config:
user: l3d user: l3d
users: users:
l3d: l3d:

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

75
setup_desk_minni.yml Normal file
View file

@ -0,0 +1,75 @@
---
- name: Install useful packages
hosts: desk_minni
tags:
- packages
- updates
- setup
roles:
- workstation_packages
- name: enable and secure sshd
hosts: desk_minni
tags:
- secure
- ssh
- setup
roles:
- authorized_keys
- sshd
- name: Install useful dotfiles
hosts: desk_minni
tags:
- setup
roles:
- dotfiles
- name: set akku warning
hosts: desk_minni
tags:
- setup
- akku
roles:
- akku-warning
- name: install modules for sound and bluetooth
hosts: desk_minni
tags:
- setup
- pulseaudio
- networkmanager
roles:
- pulseaudio
- networkmanager
- name: Install useful packages
hosts: desk_minni
tags:
- packages
- i3wm
roles:
- copy_files
- i3wm
- ntp
- 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

View file

@ -1,7 +1,7 @@
--- ---
- name: Install useful packages - name: Install useful packages
hosts: thinkpad hosts: l460
tags: tags:
- packages - packages
- updates - updates
@ -10,7 +10,7 @@
- workstation_packages - workstation_packages
- name: enable and secure sshd - name: enable and secure sshd
hosts: thinkpad hosts: l460
tags: tags:
- secure - secure
- ssh - ssh
@ -20,14 +20,14 @@
- sshd - sshd
- name: Install useful dotfiles - name: Install useful dotfiles
hosts: thinkpad hosts: l460
tags: tags:
- setup - setup
roles: roles:
- dotfiles - dotfiles
- name: set akku warning - name: set akku warning
hosts: thinkpad hosts: l460
tags: tags:
- setup - setup
- akku - akku
@ -36,7 +36,7 @@
- name: install modules for sound and bluetooth - name: install modules for sound and bluetooth
hosts: thinkpad hosts: l460
tags: tags:
- setup - setup
- pulseaudio - pulseaudio
@ -46,7 +46,7 @@
- networkmanager - networkmanager
#- name: improve firefox configuration #- name: improve firefox configuration
# hosts: thinkpad # hosts: l460
# tags: # tags:
# - setup # - setup
# - firefox # - firefox
@ -55,7 +55,7 @@
- name: Install useful packages - name: Install useful packages
hosts: thinkpad hosts: l460
tags: tags:
- packages - packages
- i3wm - i3wm
@ -65,7 +65,7 @@
- ntp - ntp
- name: install nextcloud-client - name: install nextcloud-client
hosts: thinkpad hosts: l460
tags: tags:
- setup - setup
- nextcloud - nextcloud
@ -73,7 +73,7 @@
- nextcloud - nextcloud
- name: install some arch fonts - name: install some arch fonts
hosts: thinkpad hosts: l460
tags: tags:
- arch - arch
- font - font

85
setup_t460p.yml Normal file
View file

@ -0,0 +1,85 @@
---
- name: Install useful packages
hosts: t460p
tags:
- packages
- updates
- setup
roles:
- workstation_packages
- name: enable and secure sshd
hosts: t460p
tags:
- secure
- ssh
- setup
roles:
- authorized_keys
- sshd
- name: Install useful dotfiles
hosts: t460p
tags:
- setup
roles:
- dotfiles
- name: set akku warning
hosts: t460p
tags:
- setup
- akku
roles:
- akku-warning
- name: install modules for sound and bluetooth
hosts: t460p
tags:
- setup
- pulseaudio
- networkmanager
roles:
- pulseaudio
- networkmanager
#- name: improve firefox configuration
# hosts: t460p
# tags:
# - setup
# - firefox
# roles:
# - firefox
- name: Install useful packages
hosts: t460p
tags:
- packages
- i3wm
roles:
- copy_files
- i3wm
- ntp
- 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