multiple changes
This commit is contained in:
@@ -2,34 +2,6 @@
|
|||||||
ssh_port: 22
|
ssh_port: 22
|
||||||
ssh_users: rene
|
ssh_users: rene
|
||||||
|
|
||||||
#application selection
|
|
||||||
autofs: true
|
|
||||||
borgbackup: true
|
|
||||||
brave: true
|
|
||||||
broot: true
|
|
||||||
chromium: true
|
|
||||||
docker: false
|
|
||||||
firefox: true
|
|
||||||
games: true
|
|
||||||
gimp: true
|
|
||||||
google_chrome: false
|
|
||||||
joplin: true
|
|
||||||
keepass: true
|
|
||||||
keepassxc: true
|
|
||||||
libreoffice: true
|
|
||||||
midnightcommander: true
|
|
||||||
nextcloud_client: true
|
|
||||||
nvidia: true
|
|
||||||
pacaur: true
|
|
||||||
ranger: true
|
|
||||||
syncthing: true
|
|
||||||
thunderbird: true
|
|
||||||
vifm: true
|
|
||||||
virtualbox: true
|
|
||||||
vivaldi: false
|
|
||||||
yay: false
|
|
||||||
yubikey: true
|
|
||||||
|
|
||||||
#purpose selection
|
#purpose selection
|
||||||
database: false
|
database: false
|
||||||
development: true
|
development: true
|
||||||
@@ -54,3 +26,42 @@ gnome: false
|
|||||||
kde: true
|
kde: true
|
||||||
mate: false
|
mate: false
|
||||||
xfce: false
|
xfce: false
|
||||||
|
|
||||||
|
#application selection
|
||||||
|
alacritty: true
|
||||||
|
alsa: true
|
||||||
|
autofs: true
|
||||||
|
bashtop: true
|
||||||
|
borgbackup: true
|
||||||
|
brave: true
|
||||||
|
broot: true
|
||||||
|
chromium: true
|
||||||
|
clonezilla: true
|
||||||
|
cmatrix: true
|
||||||
|
davinci-resolve: true
|
||||||
|
dbeaver: true
|
||||||
|
digikam: true
|
||||||
|
dislocker: true
|
||||||
|
docker: false
|
||||||
|
exa: true
|
||||||
|
filelight: true
|
||||||
|
firefox: true
|
||||||
|
games: true
|
||||||
|
gimp: true
|
||||||
|
google_chrome: false
|
||||||
|
joplin: true
|
||||||
|
keepass: true
|
||||||
|
keepassxc: true
|
||||||
|
libreoffice: true
|
||||||
|
midnightcommander: true
|
||||||
|
nextcloud_client: true
|
||||||
|
nvidia: true
|
||||||
|
pacaur: true
|
||||||
|
ranger: true
|
||||||
|
syncthing: true
|
||||||
|
thunderbird: true
|
||||||
|
vifm: true
|
||||||
|
virtualbox: true
|
||||||
|
vivaldi: false
|
||||||
|
yay: false
|
||||||
|
yubikey: true
|
||||||
|
|||||||
57
hosts
57
hosts
@@ -1,9 +1,58 @@
|
|||||||
[workstation]
|
[workstation:children]
|
||||||
endor.universe.local
|
development
|
||||||
endorvm.universe.local
|
mobile
|
||||||
tuxedo-book-xp1511.universe.local
|
photo_editing
|
||||||
|
video_editing
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
coruscant.universe.local
|
coruscant.universe.local
|
||||||
mewimeet.de
|
mewimeet.de
|
||||||
mewitoot.de
|
mewitoot.de
|
||||||
|
|
||||||
|
|
||||||
|
[database]
|
||||||
|
coruscant.universe.local
|
||||||
|
mewimeet.de
|
||||||
|
mewitoot.de
|
||||||
|
|
||||||
|
[development]
|
||||||
|
endor.universe.local
|
||||||
|
endorvm.universe.local
|
||||||
|
tuxedo-book-xp1511.universe.local
|
||||||
|
|
||||||
|
[dhcpserver]
|
||||||
|
coruscant.universe.local
|
||||||
|
|
||||||
|
[fileserver]
|
||||||
|
coruscant.universe.local
|
||||||
|
|
||||||
|
[mailserver]
|
||||||
|
coruscant.universe.local
|
||||||
|
mewitoot.de
|
||||||
|
|
||||||
|
[mobile]
|
||||||
|
tuxedo-book-xp1511.universe.local
|
||||||
|
|
||||||
|
[nameserver]
|
||||||
|
coruscant.universe.local
|
||||||
|
|
||||||
|
[photo_editing]
|
||||||
|
endor.universe.local
|
||||||
|
endorvm.universe.local
|
||||||
|
tuxedo-book-xp1511.universe.local
|
||||||
|
|
||||||
|
[printspooler]
|
||||||
|
coruscant.universe.local
|
||||||
|
|
||||||
|
[proxyserver]
|
||||||
|
coruscant.universe.local
|
||||||
|
|
||||||
|
[video_editing]
|
||||||
|
endor.universe.local
|
||||||
|
endorvm.universe.local
|
||||||
|
tuxedo-book-xp1511.universe.local
|
||||||
|
|
||||||
|
[webserver]
|
||||||
|
coruscant.universe.local
|
||||||
|
mewimeet.de
|
||||||
|
mewitoot.de
|
||||||
|
|||||||
74
local.yml
74
local.yml
@@ -6,11 +6,11 @@
|
|||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: pre-run | update apt repository (debian, ubuntu, etc.)
|
- name: pre-run | update apt repository (debian, ubuntu, etc.)
|
||||||
apt: update_cache=yes
|
apt: update_cache=yes
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: ansible_distribution in ["Debian", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Ubuntu"]
|
||||||
- name: pre-run | update pacman repository (arch)
|
- name: pre-run | update pacman repository (arch)
|
||||||
pacman: update_cache=yes
|
pacman: update_cache=yes
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: ansible_distribution == 'Archlinux'
|
when: ansible_distribution == 'Archlinux'
|
||||||
- name: pre-run |update portage repository (gentoo)
|
- name: pre-run |update portage repository (gentoo)
|
||||||
portage:
|
portage:
|
||||||
@@ -36,6 +36,54 @@
|
|||||||
roles:
|
roles:
|
||||||
- server
|
- server
|
||||||
|
|
||||||
|
- hosts: webserver
|
||||||
|
tags: server,webserver
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- webserver
|
||||||
|
|
||||||
|
- hosts: mailserver
|
||||||
|
tags: server,mailserver
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- mailserver
|
||||||
|
|
||||||
|
- hosts: database
|
||||||
|
tags: server,database
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- database
|
||||||
|
|
||||||
|
- hosts: dhcpserver
|
||||||
|
tags: server,dhcpserver
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- dhcpserver
|
||||||
|
|
||||||
|
- hosts: fileserver
|
||||||
|
tags: server,fileserver
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- fileserver
|
||||||
|
|
||||||
|
- hosts: nameserver
|
||||||
|
tags: server,nameserver
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- nameserver
|
||||||
|
|
||||||
|
- hosts: printspooler
|
||||||
|
tags: server,printspooler
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- printspooler
|
||||||
|
|
||||||
|
- hosts: proxyserver
|
||||||
|
tags: server,proxyserver
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- proxyserver
|
||||||
|
|
||||||
# end of roles; cleanup and reporting
|
# end of roles; cleanup and reporting
|
||||||
- hosts: all
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
@@ -61,17 +109,17 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
when: ansible_distribution == "Archlinux"
|
when: ansible_distribution == "Archlinux"
|
||||||
|
|
||||||
- name: send completion alert
|
# - name: send completion alert
|
||||||
include_tasks: playbooks/send_completion_alert.yml
|
# include_tasks: playbooks/send_completion_alert.yml
|
||||||
tags: always
|
# tags: always
|
||||||
when:
|
# when:
|
||||||
- task_failed is not defined
|
# - task_failed is not defined
|
||||||
|
|
||||||
- name: send failure alert
|
# - name: send failure alert
|
||||||
include_tasks: playbooks/send_failure_alert.yml
|
# include_tasks: playbooks/send_failure_alert.yml
|
||||||
tags: always
|
# tags: always
|
||||||
when:
|
# when:
|
||||||
- task_failed is defined
|
# - task_failed is defined
|
||||||
- task_failed == true
|
# - task_failed == true
|
||||||
|
|
||||||
# vim: ts=2 sw=2 fdm=indent
|
# vim: ts=2 sw=2 fdm=indent
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Load distro-specific variables
|
# Load distro-specific variables
|
||||||
- include_vars: "{{ ansible_distribution }}.yml
|
- include_vars: "{{ ansible_distribution }}.yml"
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
@@ -8,24 +8,24 @@
|
|||||||
- import_tasks: users/root.yml
|
- import_tasks: users/root.yml
|
||||||
|
|
||||||
# Set up the ansible environment
|
# Set up the ansible environment
|
||||||
- import_tasks: ansible_setup.yml
|
# - import_tasks: ansible_setup.yml
|
||||||
|
|
||||||
# install software
|
# install software
|
||||||
- import_tasks: software/repositories.yml
|
# - import_tasks: software/repositories.yml
|
||||||
- import_tasks: software/packages_development.yml
|
# - import_tasks: software/packages_development.yml
|
||||||
- import_tasks: software/packages_cleanup.yml
|
# - import_tasks: software/packages_cleanup.yml
|
||||||
- import_tasks: software/packages_pip.yml
|
# - import_tasks: software/packages_pip.yml
|
||||||
- import_tasks: software/packages_utilities.yml
|
# - import_tasks: software/packages_utilities.yml
|
||||||
|
|
||||||
# Perform remeining tasks:
|
# Perform remeining tasks:
|
||||||
- import_tasks: system_setup/clock.yml
|
# - import_tasks: system_setup/clock.yml
|
||||||
- import_tasks: system_setup/cron.yml
|
# - import_tasks: system_setup/cron.yml
|
||||||
- import_tasks: system_setup/locale.yml
|
# - import_tasks: system_setup/locale.yml
|
||||||
- import_tasks: system_setup/logging.yml
|
# - import_tasks: system_setup/logging.yml
|
||||||
- import_tasks: system_setup/memory.yml
|
# - import_tasks: system_setup/memory.yml
|
||||||
- import_tasks: system_setup/microcode.yml
|
# - import_tasks: system_setup/microcode.yml
|
||||||
- import_tasks: system_setup/openssh.yml
|
# - import_tasks: system_setup/openssh.yml
|
||||||
- import_tasks: system_setup/scripts.yml
|
# - import_tasks: system_setup/scripts.yml
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
- set_fact: task_failed=true
|
- set_fact: task_failed=true
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
- name: users | rene | ensure account is locked
|
||||||
|
user:
|
||||||
|
name: rrene
|
||||||
|
password_lock: yes
|
||||||
|
|
||||||
|
- name: users | rene | create config directories
|
||||||
|
file:
|
||||||
|
path: /rene/{{ item.dir }}
|
||||||
|
state: directory
|
||||||
|
owner: rene
|
||||||
|
group: rene
|
||||||
|
mode: 0700
|
||||||
|
with_items:
|
||||||
|
- {dir: '.vim'}
|
||||||
|
- {dir: '.vim/colors'}
|
||||||
|
tags: dotfiles
|
||||||
|
|
||||||
|
- name: users | rene | copy dotfiles
|
||||||
|
copy:
|
||||||
|
src: users/rene/{{ item.src }}
|
||||||
|
dest: /rene/{{ item.dest }}
|
||||||
|
owner: rene
|
||||||
|
group: rene
|
||||||
|
mode: 0600
|
||||||
|
with_items:
|
||||||
|
- {src: 'bash/bashrc', dest: '.bashrc'}
|
||||||
|
- {src: 'bash/bash_profile', dest: '.bash_profile'}
|
||||||
|
- {src: 'bash/profile', dest: '.profile'}
|
||||||
|
- {src: 'tmux/tmux.conf', dest: '.tmux.conf'}
|
||||||
|
- {src: 'vim/vimrc', dest: '.vimrc'}
|
||||||
|
- {src: 'zsh/zshrc', dest: '.zshrc'}
|
||||||
|
tags: dotfiles
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
- {src: 'bash/bashrc', dest: '.bashrc'}
|
- {src: 'bash/bashrc', dest: '.bashrc'}
|
||||||
- {src: 'bash/bash_profile', dest: '.bash_profile'}
|
- {src: 'bash/bash_profile', dest: '.bash_profile'}
|
||||||
- {src: 'bash/profile', dest: '.profile'}
|
- {src: 'bash/profile', dest: '.profile'}
|
||||||
- { src: 'tmux/tmux.conf' dest: '.tmux.conf' }
|
- {src: 'tmux/tmux.conf', dest: '.tmux.conf'}
|
||||||
- {src: 'vim/vimrc', dest: '.vimrc'}
|
- {src: 'vim/vimrc', dest: '.vimrc'}
|
||||||
- {src: 'zsh/zshrc', dest: '.zshrc'}
|
- {src: 'zsh/zshrc', dest: '.zshrc'}
|
||||||
tags: dotfiles
|
tags: dotfiles
|
||||||
|
|||||||
3
roles/server/tasks/main.yml
Normal file
3
roles/server/tasks/main.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Load distro specific variables
|
||||||
|
- include_vars: "{{ ansible_distribution }}.yml"
|
||||||
|
tags: always
|
||||||
86
roles/workstation/tasks/main.yml
Normal file
86
roles/workstation/tasks/main.yml
Normal file
@@ -0,0 +1,86 @@
|
|||||||
|
# Load distro-specific variables
|
||||||
|
- include_vars: "{{ ansible_distribution }}.yml"
|
||||||
|
tags: always
|
||||||
|
|
||||||
|
- block:
|
||||||
|
## User configs
|
||||||
|
- import_tasks: users/rene.yml
|
||||||
|
|
||||||
|
## desktop environments
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/mate/appearance.yml
|
||||||
|
# when: mate is defined and mate == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/mate/caja.yml
|
||||||
|
# when: mate is defined and mate == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/mate/keybindings.yml
|
||||||
|
# when: mate is defined and mate == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/mate/packages.yml
|
||||||
|
# when: mate is defined and mate == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/mate/peripherals.yml
|
||||||
|
# when: mate is defined and mate == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/mate/terminal.yml
|
||||||
|
# when: mate is defined and mate == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/mate/workspace_settings.yml
|
||||||
|
# when: mate is defined and mate == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/gnome/appearance.yml
|
||||||
|
# when: gnome is defined and gnome == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/gnome/keybindings.yml
|
||||||
|
# when: gnome is defined and gnome == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/gnome/nautilus.yml
|
||||||
|
# when: gnome is defined and gnome == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/gnome/packages.yml
|
||||||
|
# when: gnome is defined and gnome == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/gnome/peripherals.yml
|
||||||
|
# when: gnome is defined and gnome == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/gnome/shell_settings.yml
|
||||||
|
# when: gnome is defined and gnome == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/gnome/terminal.yml
|
||||||
|
# when: gnome is defined and gnome == true
|
||||||
|
|
||||||
|
# - include_tasks: desktop_environments/gnome/tracker.yml
|
||||||
|
# when: gnome is defined and gnome == true
|
||||||
|
|
||||||
|
## system setup
|
||||||
|
# - import_tasks: system_setup/autofs.yml
|
||||||
|
# - import_tasks: system_setup/scripts.yml
|
||||||
|
# - import_tasks: system_setup/tweaks.yml
|
||||||
|
## install software
|
||||||
|
# - import_tasks: software/audacious.yml
|
||||||
|
# - import_tasks: software/audacity.yml
|
||||||
|
# - import_tasks: software/codecs.yml
|
||||||
|
# - import_tasks: software/chromium.yml
|
||||||
|
# - import_tasks: software/darktable.yml
|
||||||
|
# - import_tasks: software/firefox.yml
|
||||||
|
# - import_tasks: software/foliate.yml
|
||||||
|
# - import_tasks: software/google_chrome.yml
|
||||||
|
# - import_tasks: software/glimpse.yml
|
||||||
|
# - import_tasks: software/kdenlive.yml
|
||||||
|
# - import_tasks: software/keepassxc.yml
|
||||||
|
# - import_tasks: software/libreoffice.yml
|
||||||
|
# - import_tasks: software/linode-cli.yml
|
||||||
|
# - import_tasks: software/lutris.yml
|
||||||
|
# - import_tasks: software/mattermost.yml
|
||||||
|
# - import_tasks: software/misc_games.yml
|
||||||
|
# - import_tasks: software/misc_packages.yml
|
||||||
|
# - import_tasks: software/steam.yml
|
||||||
|
# - import_tasks: software/syncthing.yml
|
||||||
|
# - import_tasks: software/thunderbird.yml
|
||||||
|
# - import_tasks: software/virtualbox.yml
|
||||||
|
# - import_tasks: software/vivaldi.yml
|
||||||
|
# - import_tasks: software/vlc.yml
|
||||||
|
|
||||||
|
rescue:
|
||||||
|
- set_fact: task_failed=true
|
||||||
14
roles/workstation/tasks/users/rene.yml
Normal file
14
roles/workstation/tasks/users/rene.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
- name: users | rene | remove preinstalled clutter from home directory
|
||||||
|
file:
|
||||||
|
path: /home/rene/{{ item }}
|
||||||
|
state: absent
|
||||||
|
with_items:
|
||||||
|
- examples.desktop
|
||||||
|
- Desktop
|
||||||
|
- Documents
|
||||||
|
- Downloads
|
||||||
|
- Music
|
||||||
|
- Pictures
|
||||||
|
- Public
|
||||||
|
- Templates
|
||||||
|
- Videos
|
||||||
Reference in New Issue
Block a user