Compare commits
15 Commits
d7cab54470
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 6bcc70e8e2 | |||
| 96737dc01e | |||
| 028b4aa253 | |||
| a18c127a31 | |||
| c229b3378d | |||
| 24aeb45e92 | |||
| 4c406279e9 | |||
| 12aaebf5d9 | |||
| 42fc2cdf58 | |||
| c9f41f1232 | |||
| c82630ccf2 | |||
| 3d3f950dad | |||
| 06d4fda42a | |||
| 6b0ae55eb0 | |||
| e1f5243d11 |
9
ansible-dependencies-trixie-sudo.yml
Normal file
9
ansible-dependencies-trixie-sudo.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
- name: Bootstrap & Abhängigkeiten für Ansible auf Debian/Trixie
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
gather_facts: false
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: ansible_dependencies-trixie
|
||||||
|
- role: ansible_user_debian
|
||||||
8
ansible-dependencies-trixie-sudo.yml.00
Normal file
8
ansible-dependencies-trixie-sudo.yml.00
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- hosts: initial_setup
|
||||||
|
gather_facts: false
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- ansible_dependencies-trixie
|
||||||
|
- ansible_user_debian
|
||||||
15
ansible-dependencies-trixie.yml
Normal file
15
ansible-dependencies-trixie.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- hosts: Bootstrap & Abhängigkeiten für Ansible auf Debian/Trixie
|
||||||
|
remote_user: root
|
||||||
|
become: false
|
||||||
|
gather_facts: false
|
||||||
|
|
||||||
|
vars_prompt:
|
||||||
|
|
||||||
|
- name: ansible_ssh_pass
|
||||||
|
prompt: "Give root's password here"
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- ansible_dependencies-trixie
|
||||||
|
- ansible_user_debian
|
||||||
11
ansible.cfg
11
ansible.cfg
@@ -10,7 +10,16 @@
|
|||||||
|
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
ansible_managed = *** [ Ansible managed file: DO NOT EDIT DIRECTLY ] ***
|
# [DEPRECATION WARNING] 'ansible_managed' used in ansible.cfg
|
||||||
|
#
|
||||||
|
# The `ansible_managed` variable can be set just like any other variable, or a different
|
||||||
|
# variable can be used.
|
||||||
|
#
|
||||||
|
# Alternatives: Set the `ansible_managed` variable, or use any custom variable in templates.
|
||||||
|
#
|
||||||
|
# This feature will be removed from ansible-core version 2.23.
|
||||||
|
#
|
||||||
|
#ansible_managed = *** [ Ansible managed file: DO NOT EDIT DIRECTLY ] ***
|
||||||
|
|
||||||
# Use of 'ansible_managed'
|
# Use of 'ansible_managed'
|
||||||
#
|
#
|
||||||
|
|||||||
121
apt-migrate-to-trixie.yml
Normal file
121
apt-migrate-to-trixie.yml
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# deb822 ist das neue Konfigurationsformats für APT-Quellen (Repositories).
|
||||||
|
# Es basiert auf der Debian Control Syntax nach RFC 822 – daher der Name
|
||||||
|
# ---
|
||||||
|
|
||||||
|
- name: Nur APT auf Debian 13 (Trixie) migrieren
|
||||||
|
hosts: all
|
||||||
|
become: true
|
||||||
|
gather_facts: true
|
||||||
|
|
||||||
|
vars:
|
||||||
|
target_release: trixie
|
||||||
|
debian_mirror: "http://deb.debian.org/debian"
|
||||||
|
security_mirror: "http://security.debian.org/debian-security"
|
||||||
|
components: "main contrib non-free non-free-firmware"
|
||||||
|
enable_backports: true # auf false setzen, wenn du keine Backports willst
|
||||||
|
pin_backports_low: true # Backports nur auf Anfrage
|
||||||
|
# Nur manuelle Installation/Upgrade aus Backports:
|
||||||
|
# backports_pin_priority: 100
|
||||||
|
#
|
||||||
|
# Automatische Updates für bereits installierte Backports-Pakete.
|
||||||
|
# backports_pin_priority: 500 (>= 500)
|
||||||
|
#
|
||||||
|
backports_pin_priority: 100 # 100 = nie automatisch bevorzugen
|
||||||
|
apt_cache_valid_time: 3600
|
||||||
|
# Für offizielle Debian-Repos brauchst es kein Signed-By, weil debian-archive-keyring
|
||||||
|
# ohnehin systemweit vertrauenswürdig ist.
|
||||||
|
#
|
||||||
|
use_signed_by: true # oder false, wenn du Option A willst
|
||||||
|
# Wenn Signed-By explizit gesetzt werden soll, dann nutze den Keyring-Pfad und stelle sicher,
|
||||||
|
# dass das Paket installiert ist.
|
||||||
|
signed_by_keyring: "/usr/share/keyrings/debian-archive-keyring.gpg"
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- name: Sicherstellen, dass wir Debian sind
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- ansible_facts['os_family'] == "Debian"
|
||||||
|
fail_msg: "Dieses Playbook ist nur für Debian geeignet."
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Keyring für Debian-Archive sicherstellen (falls Signed-By genutzt)
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: debian-archive-keyring
|
||||||
|
state: present
|
||||||
|
when: use_signed_by
|
||||||
|
|
||||||
|
- name: (Optional) Alte /etc/apt/sources.list sichern
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: /etc/apt/sources.list
|
||||||
|
dest: /etc/apt/sources.list.before-trixie
|
||||||
|
remote_src: true
|
||||||
|
force: false
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: Alte /etc/apt/sources.list deaktivieren (leere Kommentar-Datei)
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: /etc/apt/sources.list
|
||||||
|
content: |
|
||||||
|
# Verwaltet via Ansible. Repositories liegen in /etc/apt/sources.list.d/*.sources (deb822).
|
||||||
|
# Zielrelease: {{ target_release }}
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
|
||||||
|
- name: Debian-Repo (deb + deb-src) als deb822 anlegen
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: templates/apt-migrate-to-trixie/debian.sources.j2
|
||||||
|
dest: /etc/apt/sources.list.d/debian.sources
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
|
||||||
|
- name: Security-Repo (deb + deb-src) als deb822 anlegen
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: templates/apt-migrate-to-trixie/security.sources.j2
|
||||||
|
dest: /etc/apt/sources.list.d/security.sources
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
|
||||||
|
- name: Backports-Repo (optional) als deb822 anlegen/entfernen
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: templates/apt-migrate-to-trixie/backports.sources.j2
|
||||||
|
dest: /etc/apt/sources.list.d/backports.sources
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
when: enable_backports
|
||||||
|
- name: Backports-Repo entfernen wenn deaktiviert
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/apt/sources.list.d/backports.sources
|
||||||
|
state: absent
|
||||||
|
when: not enable_backports
|
||||||
|
|
||||||
|
- name: Optionales Backports-Pinning setzen
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: templates/apt-migrate-to-trixie/99-backports.j2
|
||||||
|
dest: /etc/apt/preferences.d/99-backports
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
when: enable_backports and pin_backports_low
|
||||||
|
|
||||||
|
- name: APT-Cache aktualisieren
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: yes
|
||||||
|
cache_valid_time: "{{ apt_cache_valid_time }}"
|
||||||
|
|
||||||
|
- name: Verifikation - zeigen, ob Suites auf trixie stehen
|
||||||
|
ansible.builtin.command: apt-cache policy
|
||||||
|
register: apt_policy
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Ausgabe anzeigen (nur Info)
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "{{ apt_policy.stdout.split('\n') | select('search', 'trixie') | list | join('\n') }}"
|
||||||
|
|
||||||
@@ -25,6 +25,8 @@ fi
|
|||||||
# to become the last directory the midnight commander was in
|
# to become the last directory the midnight commander was in
|
||||||
# as the current directory when leaving the midnight commander
|
# as the current directory when leaving the midnight commander
|
||||||
#
|
#
|
||||||
#. /usr/lib/mc/bin/mc.sh
|
if [ -f "/usr/share/mc/bin/mc.sh" ]; then
|
||||||
. /usr/share/mc/bin/mc.sh
|
source /usr/share/mc/bin/mc.sh
|
||||||
|
elif [ -f "/usr/lib/mc/bin/mc.sh" ] ; then
|
||||||
|
source /usr/lib/mc/bin/mc.sh
|
||||||
|
fi
|
||||||
|
|||||||
@@ -17,14 +17,17 @@ if [ -n "$BASH_VERSION" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# set PATH so it includes user's private bin if it exists
|
# set PATH so it includes user's private bin if it exists
|
||||||
if [ -d "$HOME/bin" ] ; then
|
if [ -d "$HOME/.local/bin" ] ; then
|
||||||
PATH="$HOME/bin:$PATH"
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# this is for the midnight-commander
|
# this is for the midnight-commander
|
||||||
# to become the last directory the midnight commander was in
|
# to become the last directory the midnight commander was in
|
||||||
# as the current directory when leaving the midnight commander
|
# as the current directory when leaving the midnight commander
|
||||||
#
|
#
|
||||||
#. /usr/lib/mc/bin/mc.sh
|
if [ -f "/usr/share/mc/bin/mc.sh" ]; then
|
||||||
. /usr/share/mc/bin/mc.sh
|
source /usr/share/mc/bin/mc.sh
|
||||||
|
elif [ -f "/usr/lib/mc/bin/mc.sh" ] ; then
|
||||||
|
source /usr/lib/mc/bin/mc.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ if [ -d "$HOME/bin" ] ; then
|
|||||||
PATH="$HOME/bin:$PATH"
|
PATH="$HOME/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set PATH so it includes user's private bin if it exists
|
||||||
|
if [ -d "$HOME/.local/bin" ] ; then
|
||||||
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
# this is for the midnight-commander
|
# this is for the midnight-commander
|
||||||
# to become the last directory the midnight commander was in
|
# to become the last directory the midnight commander was in
|
||||||
# as the current directory when leaving the midnight commander
|
# as the current directory when leaving the midnight commander
|
||||||
|
|||||||
@@ -35,4 +35,6 @@ elif [ -f "/usr/lib/mc/bin/mc.sh" ] ; then
|
|||||||
source /usr/lib/mc/bin/mc.sh
|
source /usr/lib/mc/bin/mc.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v mesg >/dev/null 2>&1; then
|
||||||
mesg n
|
mesg n
|
||||||
|
fi
|
||||||
|
|||||||
@@ -1,8 +1,18 @@
|
|||||||
# ~/.profile: executed by Bourne-compatible login shells.
|
# ~/.profile: executed by Bourne-compatible login shells.
|
||||||
|
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
|
||||||
|
# exists.
|
||||||
|
# see /usr/share/doc/bash/examples/startup-files for examples.
|
||||||
|
# the files are located in the bash-doc package.
|
||||||
|
|
||||||
if [ "$BASH" ]; then
|
# the default umask is set in /etc/profile; for setting the umask
|
||||||
if [ -f ~/.bashrc ]; then
|
# for ssh logins, install and configure the libpam-umask package.
|
||||||
. ~/.bashrc
|
#umask 022
|
||||||
|
|
||||||
|
# if running bash
|
||||||
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
|
# include .bashrc if it exists
|
||||||
|
if [ -f "$HOME/.bashrc" ]; then
|
||||||
|
. "$HOME/.bashrc"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -10,15 +20,18 @@ fi
|
|||||||
if [ -d "$HOME/bin" ] ; then
|
if [ -d "$HOME/bin" ] ; then
|
||||||
PATH="$HOME/bin:$PATH"
|
PATH="$HOME/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
if [ -d "$HOME/bin/admin-stuff" ] ; then
|
|
||||||
PATH="$HOME/bin/admin-stuff:$PATH"
|
# set PATH so it includes user's private bin if it exists
|
||||||
|
if [ -d "$HOME/.local/bin" ] ; then
|
||||||
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# this is for the midnight-commander
|
# this is for the midnight-commander
|
||||||
# to become the last directory the midnight commander was in
|
# to become the last directory the midnight commander was in
|
||||||
# as the current directory when leaving the midnight commander
|
# as the current directory when leaving the midnight commander
|
||||||
#
|
#
|
||||||
# . /usr/lib/mc/bin/mc.sh
|
if [ -f "/usr/share/mc/bin/mc.sh" ]; then
|
||||||
. /usr/share/mc/bin/mc.sh
|
source /usr/share/mc/bin/mc.sh
|
||||||
|
elif [ -f "/usr/lib/mc/bin/mc.sh" ] ; then
|
||||||
mesg n
|
source /usr/lib/mc/bin/mc.sh
|
||||||
|
fi
|
||||||
|
|||||||
@@ -1,173 +0,0 @@
|
|||||||
" An example for a vimrc file.
|
|
||||||
"
|
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
||||||
" Last change: 1999 Sep 09
|
|
||||||
"
|
|
||||||
" To use it, copy it to
|
|
||||||
" for Unix and OS/2: ~/.vimrc
|
|
||||||
" for Amiga: s:.vimrc
|
|
||||||
" for MS-DOS and Win32: $VIM\_vimrc
|
|
||||||
|
|
||||||
" This line should not be removed as it ensures that various options are
|
|
||||||
" properly set to work with the Vim-related packages available in Debian.
|
|
||||||
runtime! debian.vim
|
|
||||||
|
|
||||||
set nocompatible " Use Vim defaults (much better!)
|
|
||||||
set bs=2 " allow backspacing over everything in insert mode
|
|
||||||
set ai " always set autoindenting on
|
|
||||||
" set backup " keep a backup file
|
|
||||||
"set viminfo='20,\"50 " read/write a .viminfo file, don't store more
|
|
||||||
" than 50 lines of registers
|
|
||||||
set viminfo='20,\"50,:20,%,n~/.viminfo
|
|
||||||
set history=50 " keep 50 lines of command line history
|
|
||||||
set ruler " show the cursor position all the time
|
|
||||||
set ignorecase " suchen case-insenitiv
|
|
||||||
set showmatch " zeige passende klammern
|
|
||||||
set shell=/bin/bash " shell to start with !
|
|
||||||
set expandtab " tabs --> blanks
|
|
||||||
set showmode " anzeige INSERT/REPLACE/...
|
|
||||||
|
|
||||||
" set smartcase " Do smart case matching
|
|
||||||
|
|
||||||
set incsearch " Incremental search
|
|
||||||
" Start searching when you type the first character of
|
|
||||||
" the search string. As you type in more characters, the
|
|
||||||
" search is refined.
|
|
||||||
|
|
||||||
set t_Co=256 " To enable 256 colors in vim, put this your .vimrc before setting the colorscheme
|
|
||||||
|
|
||||||
" einrueckung
|
|
||||||
set shiftwidth=3
|
|
||||||
set tabstop=3
|
|
||||||
" Round indent to multiple of 'shiftwidth' for > and < commands
|
|
||||||
set shiftround
|
|
||||||
|
|
||||||
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
|
|
||||||
" let &guioptions = substitute(&guioptions, "t", "", "g")
|
|
||||||
|
|
||||||
" Don't use Ex mode, use Q for formatting
|
|
||||||
map Q gq
|
|
||||||
|
|
||||||
" Make p in isual Visual mode replace the selected text with the "" register.
|
|
||||||
vnoremap p <Esc>:let current_reg = @"<CR>gvdi<C-R>=current_reg<CR><Esc>
|
|
||||||
|
|
||||||
" Switch syntax highlighting on, when the terminal has colors
|
|
||||||
" Also switch on highlighting the last used search pattern.
|
|
||||||
if &t_Co > 2 || has("gui_running")
|
|
||||||
syntax on
|
|
||||||
set hlsearch
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Only do this part when compiled with support for autocommands.
|
|
||||||
if has("autocmd")
|
|
||||||
|
|
||||||
" In text files, always limit the width of text to 78 characters
|
|
||||||
autocmd BufRead *.txt set tw=78
|
|
||||||
|
|
||||||
augroup cprog
|
|
||||||
" Remove all cprog autocommands
|
|
||||||
au!
|
|
||||||
|
|
||||||
" When starting to edit a file:
|
|
||||||
" For C and C++ files set formatting of comments and set C-indenting on.
|
|
||||||
" For other files switch it off.
|
|
||||||
" Don't change the order, it's important that the line with * comes first.
|
|
||||||
autocmd FileType * set formatoptions=tcql nocindent comments&
|
|
||||||
autocmd FileType c,cpp set formatoptions=croql cindent comments=sr:/*,mb:*,el:*/,://
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
augroup gzip
|
|
||||||
" Remove all gzip autocommands
|
|
||||||
au!
|
|
||||||
|
|
||||||
" Enable editing of gzipped files
|
|
||||||
" set binary mode before reading the file
|
|
||||||
autocmd BufReadPre,FileReadPre *.gz,*.bz2 set bin
|
|
||||||
autocmd BufReadPost,FileReadPost *.gz call GZIP_read("gunzip")
|
|
||||||
autocmd BufReadPost,FileReadPost *.bz2 call GZIP_read("bunzip2")
|
|
||||||
autocmd BufWritePost,FileWritePost *.gz call GZIP_write("gzip")
|
|
||||||
autocmd BufWritePost,FileWritePost *.bz2 call GZIP_write("bzip2")
|
|
||||||
autocmd FileAppendPre *.gz call GZIP_appre("gunzip")
|
|
||||||
autocmd FileAppendPre *.bz2 call GZIP_appre("bunzip2")
|
|
||||||
autocmd FileAppendPost *.gz call GZIP_write("gzip")
|
|
||||||
autocmd FileAppendPost *.bz2 call GZIP_write("bzip2")
|
|
||||||
|
|
||||||
" After reading compressed file: Uncompress text in buffer with "cmd"
|
|
||||||
fun! GZIP_read(cmd)
|
|
||||||
let ch_save = &ch
|
|
||||||
set ch=2
|
|
||||||
execute "'[,']!" . a:cmd
|
|
||||||
set nobin
|
|
||||||
let &ch = ch_save
|
|
||||||
execute ":doautocmd BufReadPost " . expand("%:r")
|
|
||||||
endfun
|
|
||||||
|
|
||||||
" After writing compressed file: Compress written file with "cmd"
|
|
||||||
fun! GZIP_write(cmd)
|
|
||||||
if rename(expand("<afile>"), expand("<afile>:r")) == 0
|
|
||||||
execute "!" . a:cmd . " <afile>:r"
|
|
||||||
endif
|
|
||||||
endfun
|
|
||||||
|
|
||||||
" Before appending to compressed file: Uncompress file with "cmd"
|
|
||||||
fun! GZIP_appre(cmd)
|
|
||||||
execute "!" . a:cmd . " <afile>"
|
|
||||||
call rename(expand("<afile>:r"), expand("<afile>"))
|
|
||||||
endfun
|
|
||||||
|
|
||||||
augroup END
|
|
||||||
|
|
||||||
" This is disabled, because it changes the jumplist. Can't use CTRL-O to go
|
|
||||||
" back to positions in previous files more than once.
|
|
||||||
if 0
|
|
||||||
" When editing a file, always jump to the last cursor position.
|
|
||||||
" This must be after the uncompress commands.
|
|
||||||
autocmd BufReadPost * if line("'\"") && line("'\"") <= line("$") | exe "normal `\"" | endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
endif " has("autocmd")
|
|
||||||
|
|
||||||
" toggle syntax highlighting
|
|
||||||
map <F12> :if exists("syntax_on") <Bar> syntax off <Bar> else <Bar> syntax on <Bar> endif <CR><ESC>
|
|
||||||
map <F11> :nohls <CR>
|
|
||||||
|
|
||||||
" use <F6> to toggle line numbers
|
|
||||||
nmap <silent> <F6> :set number!<CR>
|
|
||||||
|
|
||||||
|
|
||||||
" If using a dark background within the editing area and syntax highlighting
|
|
||||||
" turn on this option as well
|
|
||||||
set background=dark
|
|
||||||
|
|
||||||
|
|
||||||
" set color for search
|
|
||||||
hi clear search
|
|
||||||
hi search term=bold,reverse cterm=bold,reverse gui=bold,reverse
|
|
||||||
|
|
||||||
" set color for Comment
|
|
||||||
hi clear Comment
|
|
||||||
"highlight Comment term=bold cterm=bold ctermfg=LightBlue guifg=#80a0ff gui=bold
|
|
||||||
"highlight Comment term=none cterm=none ctermfg=LightBlue guifg=#80a0ff gui=bold
|
|
||||||
"highlight Comment term=bold cterm=bold ctermfg=grey guifg=#80a0ff gui=bold
|
|
||||||
highlight Comment term=none cterm=none ctermfg=grey guifg=#80a0ff gui=bold
|
|
||||||
"highlight Comment term=none cterm=none ctermfg=177 guifg=#80a0ff gui=bold
|
|
||||||
"highlight Comment term=none cterm=none ctermfg=215 guifg=#80a0ff gui=bold
|
|
||||||
|
|
||||||
" Go back to the position the cursor was on the last time this file was edited
|
|
||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")|execute("normal `\"")|endif
|
|
||||||
|
|
||||||
" visual shifting (does not exit Visual mode)
|
|
||||||
vnoremap < <gv
|
|
||||||
vnoremap > >gv
|
|
||||||
|
|
||||||
" Scroll when cursor gets within 3 characters of top/bottom edge
|
|
||||||
set scrolloff=3
|
|
||||||
|
|
||||||
" Show line, column number, and relative position within a file in the status line
|
|
||||||
" set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
|
|
||||||
"set statusline=\ %F\ %(\|\ flags:\ %R%M%H%W\ %)%(\|\ type:\ %Y\ %)%(\|\ format:\ %{&ff}\ %)%(\|\ syntax:\ %{synIDattr(synID(line('.'),col('.'),0),'name')}%)\ \ %=line:\ %l/%L\ \|\ column:\ %c%V\ \|\ relative\:\ %p%%\
|
|
||||||
set statusline=\ %F\ %(\|\ flags:\ %R%M%H%W\ %)%(\|\ type:\ %Y\ %)%(\|\ format:\ %{&ff}\ %)\ \ %=line:\ %l/%L\ \|\ col:\ %c%V\ \|\ %p%%
|
|
||||||
" Always show status line, even for one window
|
|
||||||
set laststatus=2
|
|
||||||
highlight StatusLine cterm=none ctermfg=white ctermbg=blue
|
|
||||||
|
|
||||||
@@ -25,6 +25,8 @@ fi
|
|||||||
# to become the last directory the midnight commander was in
|
# to become the last directory the midnight commander was in
|
||||||
# as the current directory when leaving the midnight commander
|
# as the current directory when leaving the midnight commander
|
||||||
#
|
#
|
||||||
#. /usr/lib/mc/bin/mc.sh
|
if [ -f "/usr/share/mc/bin/mc.sh" ]; then
|
||||||
. /usr/share/mc/bin/mc.sh
|
source /usr/share/mc/bin/mc.sh
|
||||||
|
elif [ -f "/usr/lib/mc/bin/mc.sh" ] ; then
|
||||||
|
source /usr/lib/mc/bin/mc.sh
|
||||||
|
fi
|
||||||
|
|||||||
419
ga-eh-gw.oopen.de.yml
Normal file
419
ga-eh-gw.oopen.de.yml
Normal file
@@ -0,0 +1,419 @@
|
|||||||
|
---
|
||||||
|
# ---
|
||||||
|
# vars used by roles/network_interfaces
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# If true, all additional files in /etc/network/interfaces/interfaces.d/ are deleted
|
||||||
|
network_manage_devices: True
|
||||||
|
|
||||||
|
# Should the interfaces be reloaded after config change?
|
||||||
|
network_interface_reload: False
|
||||||
|
|
||||||
|
network_interface_path: /etc/network/interfaces.d
|
||||||
|
network_interface_required_packages:
|
||||||
|
- vlan
|
||||||
|
- bridge-utils
|
||||||
|
- ifmetric
|
||||||
|
- ifupdown
|
||||||
|
- ifenslave
|
||||||
|
|
||||||
|
network_interfaces:
|
||||||
|
|
||||||
|
- device: eno1
|
||||||
|
headline: eno1 - Uplink WiDSL via (static) line to Fritz!Box 7490
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 172.16.80.1
|
||||||
|
netmask: 24
|
||||||
|
gateway: 172.16.80.254
|
||||||
|
#nameservers:
|
||||||
|
# - 192.168.81.1
|
||||||
|
# - 172.16.81.254
|
||||||
|
#search: ga.netz ga.intra
|
||||||
|
|
||||||
|
|
||||||
|
- device: eno2
|
||||||
|
headline: eno2 - Uplink Telekom (static line via digitbox)
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 172.16.81.1
|
||||||
|
netmask: 24
|
||||||
|
gateway: 172.16.81.254
|
||||||
|
|
||||||
|
|
||||||
|
- device: eno5
|
||||||
|
headline: eno5 - LAN
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 192.168.81.254
|
||||||
|
netmask: 24
|
||||||
|
post-up:
|
||||||
|
# VLAN 321 - for Ubiquiti UniFi Accesspoints Guest NET
|
||||||
|
- /sbin/ip link add link eno5 name eno5.21 type vlan id 21
|
||||||
|
# VLAN 331 - for Ubiquiti UniFi Accesspoints private NET
|
||||||
|
- /sbin/ip link add link eno5 name eno5.31 type vlan id 31
|
||||||
|
|
||||||
|
|
||||||
|
- device: eno5.21
|
||||||
|
headline: eno5 - VLAN 321 (Ubiquiti UniFi Accesspoints Guest NET)
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 10.21.15.254
|
||||||
|
netmask: 20
|
||||||
|
|
||||||
|
- device: eno5.31
|
||||||
|
headline: eno5 - VLAN 331 (Ubiquiti UniFi Accesspoints private NET)
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 10.31.15.254
|
||||||
|
netmask: 20
|
||||||
|
|
||||||
|
|
||||||
|
- device: eno5:ns
|
||||||
|
headline: eno5:ns - Alias on eno5 (Nameserver)
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 192.168.81.1
|
||||||
|
netmask: 32
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/ansible_dependencies
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/ansible_user
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/basic.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/cron.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
cron_user_entries:
|
||||||
|
|
||||||
|
- name: "Check if Postfix Mailservice is up and running?"
|
||||||
|
minute: "*/15"
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_postfix.sh
|
||||||
|
|
||||||
|
- name: "Check if SSH service is up and running?"
|
||||||
|
minute: "*/15"
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_ssh.sh
|
||||||
|
|
||||||
|
- name: "Check if OpenVPN service is up and running?"
|
||||||
|
minute: "*/30"
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_vpn.sh
|
||||||
|
|
||||||
|
- name: "Check if nameservice (bind) is running?"
|
||||||
|
minute: '*/10'
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_dns.sh
|
||||||
|
|
||||||
|
- name: "Check forwarding ( /proc/sys/net/ipv4/ip_forward contains \"1\" )"
|
||||||
|
minute: "0-59/2"
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_forwarding.sh
|
||||||
|
|
||||||
|
- name: "Copy gateway configuration"
|
||||||
|
minute: "09"
|
||||||
|
hour: "3"
|
||||||
|
job: /root/bin/manage-gw-config/copy_gateway-config.sh GA-NH
|
||||||
|
|
||||||
|
|
||||||
|
#cron_user_special_time_entries: []
|
||||||
|
cron_user_special_time_entries:
|
||||||
|
|
||||||
|
- name: "Check if Postfix Service is running at boot time"
|
||||||
|
special_time: reboot
|
||||||
|
job: "sleep 7 ; /root/bin/monitoring/check_postfix.sh"
|
||||||
|
insertafter: PATH
|
||||||
|
|
||||||
|
- name: "Restart Systemd's resolved at boottime."
|
||||||
|
special_time: reboot
|
||||||
|
job: "sleep 10 ; /bin/systemctl restart systemd-resolved"
|
||||||
|
insertafter: PATH
|
||||||
|
|
||||||
|
- name: "Restart NTP service 'ntpsec'"
|
||||||
|
special_time: reboot
|
||||||
|
job: "sleep 15 ; /bin/systemctl restart ntpsec"
|
||||||
|
insertafter: PATH
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/sshd.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/apt.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/systemd-resolved.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
systemd_resolved: true
|
||||||
|
|
||||||
|
# CyberGhost - Schnelle Verbindung mit Keine-Logs-Datenschutzrichtlinie
|
||||||
|
# Primäre DNS-Adresse: 38.132.106.139
|
||||||
|
# Sekundäre DNS-Adresse: 194.187.251.67
|
||||||
|
#
|
||||||
|
# Cloudflare (USA) Bester kostenloser DNS-Server für Gaming mit zuverlässigen Verbindungen
|
||||||
|
# primäre DNS-Adresse
|
||||||
|
# IPv4: 1.1.1.1
|
||||||
|
# IPv6: 2606:4700:4700::1111
|
||||||
|
# sekundäre DNS-Adresse
|
||||||
|
# IPv4: 1.0.0.1
|
||||||
|
# IPv6: 2606:4700:4700::1001
|
||||||
|
#
|
||||||
|
# Google (USA) Public DNS - Großartige Kombination aus Geschwindigkeit und Sicherheit
|
||||||
|
# primäre DNS-Adresse
|
||||||
|
# IPv4: 8.8.8.8
|
||||||
|
# IPv6: 2001:4860:4860::8888
|
||||||
|
# sekundäre DNS-Adresse
|
||||||
|
# IPv4: 8.8.4.4
|
||||||
|
# IPv6: 2001:4860:4860::8844
|
||||||
|
#
|
||||||
|
# Quad9 (CH) - Blockiert mühelos schädliche Seiten und verhindert Phishing-Betrug
|
||||||
|
# primäre DNS-Adresse
|
||||||
|
# IPv4: 9.9.9.9
|
||||||
|
# IPv6: 2620:fe::fe
|
||||||
|
# sekundäre DNS-Adresse
|
||||||
|
# IPv4: 149.112.112.112
|
||||||
|
# IPv6: 2620:fe::9
|
||||||
|
#
|
||||||
|
# OpenNIC - https://www.opennic.org/
|
||||||
|
# IPv4: 195.10.195.195 - ns31.de
|
||||||
|
# IPv4: 94.16.114.254 - ns28.de
|
||||||
|
# IPv4: 51.254.162.59 - ns9.de
|
||||||
|
# IPv4: 194.36.144.87 - ns29.de
|
||||||
|
# IPv6: 2a00:f826:8:2::195 - ns31.de
|
||||||
|
#
|
||||||
|
# Freifunk München (normales DNS, DNS-over-TLS und DNS-over-HTTPS)
|
||||||
|
# IPv4: 5.1.66.255
|
||||||
|
# IPv6: 2001:678:e68:f000::
|
||||||
|
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||||
|
# IPv4: 185.150.99.255
|
||||||
|
# IPv6: 2001:678:ed0:f000::
|
||||||
|
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||||
|
# für iOS 14+: DoT-Server-Konfiguration (unsigniert, vom PrHdb)
|
||||||
|
resolved_nameserver:
|
||||||
|
- 127.0.0.1
|
||||||
|
|
||||||
|
# search domains
|
||||||
|
#
|
||||||
|
# If there are more than one search domains, then specify them here in the order in which
|
||||||
|
# the resolver should also search them
|
||||||
|
#
|
||||||
|
#resolved_domains: []
|
||||||
|
resolved_domains:
|
||||||
|
- ~.
|
||||||
|
- ga.netz
|
||||||
|
- ga.intra
|
||||||
|
|
||||||
|
resolved_dnssec: false
|
||||||
|
|
||||||
|
# dns.as250.net: 194.150.168.168
|
||||||
|
#
|
||||||
|
resolved_fallback_nameserver:
|
||||||
|
- 194.150.168.168
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/users.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
insert_ssh_keypair_backup_server: false
|
||||||
|
ssh_keypair_backup_server:
|
||||||
|
- name: backup
|
||||||
|
backup_user: back
|
||||||
|
priv_key_src: root/.ssh/id_rsa.backup.oopen.de
|
||||||
|
priv_key_dest: /root/.ssh/id_rsa
|
||||||
|
pub_key_src: root/.ssh/id_rsa.backup.oopen.de.pub
|
||||||
|
pub_key_dest: /root/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
insert_keypair_backup_client: true
|
||||||
|
ssh_keypair_backup_client:
|
||||||
|
- name: backup
|
||||||
|
priv_key_src: root/.ssh/id_ed25519.oopen-server
|
||||||
|
priv_key_dest: /root/.ssh/id_ed25519
|
||||||
|
pub_key_src: root/.ssh/id_ed25519.oopen-server.pub
|
||||||
|
pub_key_dest: /root/.ssh/id_ed25519.pub
|
||||||
|
target: backup.oopen.de
|
||||||
|
|
||||||
|
default_user:
|
||||||
|
|
||||||
|
- name: chris
|
||||||
|
password: $y$j9T$rDrvWa/KInzTe601YYf9./$WjDlaItCrgX7gu4nCs481y8WLxiRaNJCC/MgFgKuzg3
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
|
||||||
|
- name: maadmin
|
||||||
|
password: $y$j9T$LCkYWvykWzrpFxIlmSUB01$e1ROfZxXAU53UdAwZAECzED4iV4LS02Q4IPQ2fycv51
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHCQRRXy0+9D+mhLniRlUpZZ3kZdZcQKXBsGnlsFYaRi maadmin@ga-st-lsx1'
|
||||||
|
|
||||||
|
- name: wadmin
|
||||||
|
password: $6$sLWIXKTW$i/STlSS0LijkrnGR/XMbaxJsEbrRdDYgqyCqIr.muLN5towes8yHDCXsyCYDjuaBNKPHXyFpr8lclg5DOm9OF1
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF5GDIFA6/i6lzkr+EP/EZM9glrK0eSR0nmrEFgUJ4n8 wadmin@ga-st-lsx1'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID17MN6fUg0D1dMSgVYIBpIy+sDBBmiaHmXRXU63TXJA wadmin@ga-st-li1303'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtK8/rxHL1MKX5AHrgAzUYu0kV+1iYCmknpTQ7F0ham wadmin@wolf-debtest'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIcaDFxj0pYjOv/ohFVxVY2RKvy6ACZFPX9UkrUPHkbN wadmin@wolf-x1'
|
||||||
|
|
||||||
|
- name: sysadm
|
||||||
|
user_id: 1050
|
||||||
|
group_id: 1050
|
||||||
|
group: sysadm
|
||||||
|
password: $y$j9T$awYUu9oRvV39ojITZOC7D1$czTh5HHIE32PXb0vl40ayAarm39txR4jaH1QzBscqfC
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHCQRRXy0+9D+mhLniRlUpZZ3kZdZcQKXBsGnlsFYaRi maadmin@ga-st-lsx1'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF5GDIFA6/i6lzkr+EP/EZM9glrK0eSR0nmrEFgUJ4n8 wadmin@ga-st-lsx1'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID17MN6fUg0D1dMSgVYIBpIy+sDBBmiaHmXRXU63TXJA wadmin@ga-st-li1303'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtK8/rxHL1MKX5AHrgAzUYu0kV+1iYCmknpTQ7F0ham wadmin@wolf-debtest'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIcaDFxj0pYjOv/ohFVxVY2RKvy6ACZFPX9UkrUPHkbN wadmin@wolf-x1'
|
||||||
|
|
||||||
|
- name: back
|
||||||
|
user_id: 1060
|
||||||
|
group_id: 1060
|
||||||
|
group: back
|
||||||
|
password: $y$j9T$wpg8hlvMpO4PAWSVdLoJq/$dgpQh4cEnbUOQkkZzKUM4S8XzNS/Md5gMmMuNTqec74
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
|
||||||
|
sudo_users:
|
||||||
|
- chris
|
||||||
|
- sysadm
|
||||||
|
- maadmin
|
||||||
|
- wadmin
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/users-systemfiles.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/webadmin-user.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/sudoers.yml
|
||||||
|
# ---
|
||||||
|
#
|
||||||
|
# see: roles/common/tasks/vars
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/caching-nameserver.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
install_bind_packages: true
|
||||||
|
|
||||||
|
bind9_gateway_acl:
|
||||||
|
- local-net:
|
||||||
|
name: local-net
|
||||||
|
entries:
|
||||||
|
- 127.0.0.0/8
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- fc00::/7
|
||||||
|
- fe80::/10
|
||||||
|
- ::1/128
|
||||||
|
- internaldns:
|
||||||
|
name: internaldns
|
||||||
|
entries:
|
||||||
|
- '# Nameserver Gateway Stockhausen'
|
||||||
|
- 192.168.11.1
|
||||||
|
- '# Domain Controller Stockhausen'
|
||||||
|
- 192.168.10.3
|
||||||
|
- '# Nameserver Gateway Altenschlirf'
|
||||||
|
- 192.168.10.1
|
||||||
|
- '# Domain Controller Altenschlirf'
|
||||||
|
- 192.168.10.3
|
||||||
|
- 192.168.10.6
|
||||||
|
- 172.16.0.1
|
||||||
|
- '# Nameserver Gateway Novalishaus'
|
||||||
|
- 192.168.81.1
|
||||||
|
- 10.2.11.2
|
||||||
|
- '# Nameserver wolle'
|
||||||
|
- 10.113.12.3
|
||||||
|
- '# Postfix Mailserver'
|
||||||
|
- 192.168.11.2
|
||||||
|
- '# Mail Relay System'
|
||||||
|
- 192.168.10.2
|
||||||
|
|
||||||
|
bind9_gateway_listen_on_v6:
|
||||||
|
- none
|
||||||
|
|
||||||
|
bind9_gateway_listen_on:
|
||||||
|
- any
|
||||||
|
|
||||||
|
#bind9_gateway_allow_transfer: {}
|
||||||
|
bind9_gateway_allow_transfer:
|
||||||
|
- none
|
||||||
|
|
||||||
|
bind9_transfer_source: !!str "192.168.81.1"
|
||||||
|
bind9_notify_source: !!str "192.168.81.1"
|
||||||
|
|
||||||
|
#bind9_gateway_allow_query: {}
|
||||||
|
bind9_gateway_allow_query:
|
||||||
|
- local-net
|
||||||
|
|
||||||
|
#bind9_gateway_allow_query_cache: {}
|
||||||
|
bind9_gateway_allow_query_cache:
|
||||||
|
- local-net
|
||||||
|
|
||||||
|
bind9_gateway_recursion: !!str "yes"
|
||||||
|
#bind9_gateway_allow_recursion: {}
|
||||||
|
bind9_gateway_allow_recursion:
|
||||||
|
- local-net
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/git.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
git_firewall_repository:
|
||||||
|
name: ipt-gateway
|
||||||
|
repo: https://git.oopen.de/firewall/ipt-gateway
|
||||||
|
dest: /usr/local/src/ipt-gateway
|
||||||
|
|
||||||
|
# ==============================
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by scripts/reset_root_passwd.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
root_user:
|
||||||
|
name: root
|
||||||
|
password: $6$J1ssJfdshf/$mknQEPDcW4HN5.wFfawbamamywI7F7fhdZmaR1abNrc4DA7DNRx766lz3ygf9YV3gcmRq3QhJ3fBVlkwGMCvq.
|
||||||
|
|
||||||
@@ -1,5 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
#ansible_managed: !!str " *** [ Ansible managed file: DO NOT EDIT DIRECTLY ] ***"
|
||||||
|
|
||||||
|
ansible_managed: >
|
||||||
|
*** ANSIBLE MANAGED FILE - DO NOT EDIT ***
|
||||||
|
|
||||||
|
# This file was generated by {{ ansible_user_id }} on {{ ansible_date_time.iso8601 }}
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# vars used by roles/ansible_dependencies
|
# vars used by roles/ansible_dependencies
|
||||||
# ---
|
# ---
|
||||||
@@ -20,6 +29,22 @@ apt_ansible_dependencies:
|
|||||||
- vim
|
- vim
|
||||||
- vlan
|
- vlan
|
||||||
|
|
||||||
|
# software-properties-common no longer available
|
||||||
|
apt_ansible_dependencies_trixie:
|
||||||
|
- apt-transport-https
|
||||||
|
- ca-certificates
|
||||||
|
- dbus
|
||||||
|
- lsb-release
|
||||||
|
- mc
|
||||||
|
- net-tools
|
||||||
|
- openssl
|
||||||
|
- python-apt-common
|
||||||
|
- python3
|
||||||
|
- python3-apt
|
||||||
|
- sudo
|
||||||
|
- vim
|
||||||
|
- vlan
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# vars used by roles/ansible_user
|
# vars used by roles/ansible_user
|
||||||
@@ -636,6 +661,129 @@ apt_initial_install_bookworm:
|
|||||||
- btrfs-progs
|
- btrfs-progs
|
||||||
- fdisk
|
- fdisk
|
||||||
|
|
||||||
|
# mime-support no longer exists
|
||||||
|
# rcconf no longer exists
|
||||||
|
apt_initial_install_trixie:
|
||||||
|
- acl
|
||||||
|
- aptitude
|
||||||
|
- apt-utils
|
||||||
|
- arj
|
||||||
|
- arp-scan
|
||||||
|
- attr
|
||||||
|
- bash
|
||||||
|
- bash-completion
|
||||||
|
- bc
|
||||||
|
- bridge-utils
|
||||||
|
- btrfs-progs
|
||||||
|
- bzip2
|
||||||
|
- coreutils
|
||||||
|
- cron
|
||||||
|
- cryptsetup
|
||||||
|
- curl
|
||||||
|
- dbus
|
||||||
|
- debian-keyring
|
||||||
|
- dnsutils
|
||||||
|
- dselect
|
||||||
|
- ethtool
|
||||||
|
- fdisk
|
||||||
|
- figlet
|
||||||
|
- file
|
||||||
|
- freeipmi-tools
|
||||||
|
- ftp
|
||||||
|
- gawk
|
||||||
|
- gdisk
|
||||||
|
- gettext
|
||||||
|
- gettext-base
|
||||||
|
- gettext-doc
|
||||||
|
- git
|
||||||
|
- groff
|
||||||
|
- groff
|
||||||
|
- haveged
|
||||||
|
- hdparm
|
||||||
|
- htop
|
||||||
|
- iperf
|
||||||
|
- ipmitool
|
||||||
|
- iproute2
|
||||||
|
- iptables
|
||||||
|
- iptraf
|
||||||
|
- iputils-ping
|
||||||
|
- less
|
||||||
|
- libio-compress-perl
|
||||||
|
- libmail-imapclient-perl
|
||||||
|
- libpcre2-8-0
|
||||||
|
- libpcre2-16-0
|
||||||
|
- libpcre2-32-0
|
||||||
|
- libperl-dev
|
||||||
|
- libreadline-dev
|
||||||
|
- librecode3
|
||||||
|
- librecode-dev
|
||||||
|
- libterm-readkey-perl
|
||||||
|
- libterm-readline-gnu-perl
|
||||||
|
- libterm-readline-perl-perl
|
||||||
|
- libtimedate-perl
|
||||||
|
- libtime-duration-perl
|
||||||
|
- libwww-perl
|
||||||
|
- links
|
||||||
|
- locate
|
||||||
|
- logrotate
|
||||||
|
- lsb-release
|
||||||
|
- lshw
|
||||||
|
- lsof
|
||||||
|
- lua5.4
|
||||||
|
- lynx
|
||||||
|
- man
|
||||||
|
- mawk
|
||||||
|
- mc
|
||||||
|
- moreutils
|
||||||
|
- mtr
|
||||||
|
- needrestart
|
||||||
|
- net-tools
|
||||||
|
- ntpsec-ntpdate
|
||||||
|
- openssh-server
|
||||||
|
- parted
|
||||||
|
- patch
|
||||||
|
- patchutils
|
||||||
|
- perl
|
||||||
|
- perl-doc
|
||||||
|
- perl-modules
|
||||||
|
- psmisc
|
||||||
|
- quota
|
||||||
|
- quotatool
|
||||||
|
- rblcheck
|
||||||
|
- rdate
|
||||||
|
- re2c
|
||||||
|
- recode
|
||||||
|
- recode-doc
|
||||||
|
- rsync
|
||||||
|
- rsyslog
|
||||||
|
- rush
|
||||||
|
- screen
|
||||||
|
- sharutils
|
||||||
|
- shellcheck
|
||||||
|
- sipcalc
|
||||||
|
- smartmontools
|
||||||
|
- socat
|
||||||
|
- ssl-cert
|
||||||
|
- ssl-cert-check
|
||||||
|
- sudo
|
||||||
|
- tcpdump
|
||||||
|
- tmux
|
||||||
|
- unhide
|
||||||
|
- universal-ctags
|
||||||
|
- unzip
|
||||||
|
- util-linux
|
||||||
|
- vim
|
||||||
|
- vim-common
|
||||||
|
- vim-doc
|
||||||
|
- vlan
|
||||||
|
- w3m
|
||||||
|
- wget
|
||||||
|
- whois
|
||||||
|
- wipe
|
||||||
|
- wipe
|
||||||
|
- zip
|
||||||
|
- zsh
|
||||||
|
|
||||||
|
|
||||||
apt_initial_install_xenial:
|
apt_initial_install_xenial:
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
@@ -2796,6 +2944,8 @@ ipv6_address: ''
|
|||||||
|
|
||||||
is_relay_host:
|
is_relay_host:
|
||||||
|
|
||||||
|
# support_dmarc_reporting:
|
||||||
|
|
||||||
# sasl_auth_enable:
|
# sasl_auth_enable:
|
||||||
#
|
#
|
||||||
# possible values are:
|
# possible values are:
|
||||||
|
|||||||
@@ -214,6 +214,8 @@ ipv6_address: 2a01:4f9:4a:47e5::247
|
|||||||
admin_email: argus@oopen.de
|
admin_email: argus@oopen.de
|
||||||
is_relay_host: !!str "false"
|
is_relay_host: !!str "false"
|
||||||
|
|
||||||
|
support_dmarc_reporting: !!str "true"
|
||||||
|
|
||||||
db_in_use: !!str "true"
|
db_in_use: !!str "true"
|
||||||
# postfix_db_type
|
# postfix_db_type
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -280,6 +280,7 @@ default_user:
|
|||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICMHxvK5kzKgypVi8ZvshveSpyo0eSXiBCnAC5Pcjdgv root@discourse'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICMHxvK5kzKgypVi8ZvshveSpyo0eSXiBCnAC5Pcjdgv root@discourse'
|
||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDy5WM1qsLE2SRwWG1Y38WJcMYUpL8MuQiraqiXfHzaH root@e.mx'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDy5WM1qsLE2SRwWG1Y38WJcMYUpL8MuQiraqiXfHzaH root@e.mx'
|
||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOvOkCWNKUJ5o9e+0NhY4IFZv8LA7tkkkEFjr8nqFKhe root@formbricks-nd'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOvOkCWNKUJ5o9e+0NhY4IFZv8LA7tkkkEFjr8nqFKhe root@formbricks-nd'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL7KbEZApiqEcU4aK3A2J8hy+r1uV7TZupwm4CHGqLPH root@ga-gh-gw'
|
||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJPbony+4g4iFS32Cv/Bkmet4FsCAsrGTffwWm2eM16x root@git.warenform'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJPbony+4g4iFS32Cv/Bkmet4FsCAsrGTffwWm2eM16x root@git.warenform'
|
||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDqqmBWh3qmnx41NiLCn1LhVG0mn4++IUvRNC0OMh6h6 root@gitoea'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDqqmBWh3qmnx41NiLCn1LhVG0mn4++IUvRNC0OMh6h6 root@gitoea'
|
||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICR9o0+6jnfmXKOedKP6IZgt5lRIPFSJJ4FbMjz2SPkH root@gw-campus'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICR9o0+6jnfmXKOedKP6IZgt5lRIPFSJJ4FbMjz2SPkH root@gw-campus'
|
||||||
|
|||||||
652
host_vars/file-ah-neu.kanzlei-kiel.netz.yml
Normal file
652
host_vars/file-ah-neu.kanzlei-kiel.netz.yml
Normal file
@@ -0,0 +1,652 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/network_interfaces
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# If true, all additional files in /etc/network/interfaces/interfaces.d/ are deleted
|
||||||
|
network_manage_devices: True
|
||||||
|
|
||||||
|
# Should the interfaces be reloaded after config change?
|
||||||
|
network_interface_reload: False
|
||||||
|
|
||||||
|
network_interface_path: /etc/network/interfaces.d
|
||||||
|
network_interface_required_packages:
|
||||||
|
- vlan
|
||||||
|
- bridge-utils
|
||||||
|
- ifmetric
|
||||||
|
- ifupdown
|
||||||
|
- ifenslave
|
||||||
|
|
||||||
|
|
||||||
|
network_interfaces:
|
||||||
|
|
||||||
|
- device: br0
|
||||||
|
# use only once per device (for the first device entry)
|
||||||
|
headline: br0 - bridge over device eno1np0
|
||||||
|
|
||||||
|
# auto & allow are only used for the first device entry
|
||||||
|
allow: [] # array of allow-[stanzas] eg. allow-hotplug
|
||||||
|
auto: true
|
||||||
|
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
hwaddress: 7c:c2:55:c0:26:74
|
||||||
|
description:
|
||||||
|
address: 192.168.100.20
|
||||||
|
netmask: 24
|
||||||
|
gateway: 192.168.100.254
|
||||||
|
|
||||||
|
# optional dns settings nameservers: []
|
||||||
|
#
|
||||||
|
# nameservers:
|
||||||
|
# - 194.150.168.168 # dns.as250.net
|
||||||
|
# - 91.239.100.100 # anycast.censurfridns.dk
|
||||||
|
# search: warenform.de
|
||||||
|
#
|
||||||
|
#nameservers:
|
||||||
|
# - 192.168.100.1
|
||||||
|
#search: kanzlei-kiel.netz
|
||||||
|
|
||||||
|
# optional bridge parameters bridge: {}
|
||||||
|
# bridge:
|
||||||
|
# ports:
|
||||||
|
# stp:
|
||||||
|
# fd:
|
||||||
|
# maxwait:
|
||||||
|
# waitport:
|
||||||
|
bridge:
|
||||||
|
ports: eno1np0 # for mor devices support a blank separated list
|
||||||
|
stp: !!str off
|
||||||
|
fd: 5
|
||||||
|
hello: 2
|
||||||
|
maxage: 12
|
||||||
|
|
||||||
|
# inline hook scripts
|
||||||
|
pre-up:
|
||||||
|
- !!str "ip link set dev eno1np0 up" # pre-up script lines
|
||||||
|
up: [] #up script lines
|
||||||
|
post-up: [] # post-up script lines (alias for up)
|
||||||
|
pre-down: [] # pre-down script lines (alias for down)
|
||||||
|
down: [] # down script lines
|
||||||
|
post-down: [] # post-down script lines
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/ansible_dependencies
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/ansible_user
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/basic.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/sshd.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/apt.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/systemd-resolved.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
systemd_resolved: true
|
||||||
|
|
||||||
|
# CyberGhost - Schnelle Verbindung mit Keine-Logs-Datenschutzrichtlinie
|
||||||
|
# Primäre DNS-Adresse: 38.132.106.139
|
||||||
|
# Sekundäre DNS-Adresse: 194.187.251.67
|
||||||
|
#
|
||||||
|
# Cloudflare (USA) Bester kostenloser DNS-Server für Gaming mit zuverlässigen Verbindungen
|
||||||
|
# primäre DNS-Adresse
|
||||||
|
# IPv4: 1.1.1.1
|
||||||
|
# IPv6: 2606:4700:4700::1111
|
||||||
|
# sekundäre DNS-Adresse
|
||||||
|
# IPv4: 1.0.0.1
|
||||||
|
# IPv6: 2606:4700:4700::1001
|
||||||
|
#
|
||||||
|
# Google (USA) Public DNS - Großartige Kombination aus Geschwindigkeit und Sicherheit
|
||||||
|
# primäre DNS-Adresse
|
||||||
|
# IPv4: 8.8.8.8
|
||||||
|
# IPv6: 2001:4860:4860::8888
|
||||||
|
# sekundäre DNS-Adresse
|
||||||
|
# IPv4: 8.8.4.4
|
||||||
|
# IPv6: 2001:4860:4860::8844
|
||||||
|
#
|
||||||
|
# Quad9 (CH) - Blockiert mühelos schädliche Seiten und verhindert Phishing-Betrug
|
||||||
|
# primäre DNS-Adresse
|
||||||
|
# IPv4: 9.9.9.9
|
||||||
|
# IPv6: 2620:fe::fe
|
||||||
|
# sekundäre DNS-Adresse
|
||||||
|
# IPv4: 149.112.112.112
|
||||||
|
# IPv6: 2620:fe::9
|
||||||
|
#
|
||||||
|
# OpenNIC - https://www.opennic.org/
|
||||||
|
# IPv4: 195.10.195.195 - ns31.de
|
||||||
|
# IPv4: 94.16.114.254 - ns28.de
|
||||||
|
# IPv4: 51.254.162.59 - ns9.de
|
||||||
|
# IPv4: 194.36.144.87 - ns29.de
|
||||||
|
# IPv6: 2a00:f826:8:2::195 - ns31.de
|
||||||
|
#
|
||||||
|
# Freifunk München (normales DNS, DNS-over-TLS und DNS-over-HTTPS)
|
||||||
|
# IPv4: 5.1.66.255
|
||||||
|
# IPv6: 2001:678:e68:f000::
|
||||||
|
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||||
|
# IPv4: 185.150.99.255
|
||||||
|
# IPv6: 2001:678:ed0:f000::
|
||||||
|
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||||
|
# für iOS 14+: DoT-Server-Konfiguration (unsigniert, vom PrHdb)
|
||||||
|
resolved_nameserver:
|
||||||
|
- 192.168.100.1
|
||||||
|
|
||||||
|
# search domains
|
||||||
|
#
|
||||||
|
# If there are more than one search domains, then specify them here in the order in which
|
||||||
|
# the resolver should also search them
|
||||||
|
#
|
||||||
|
#resolved_domains: []
|
||||||
|
resolved_domains:
|
||||||
|
- ~.
|
||||||
|
- kanzlei-kiel.netz
|
||||||
|
|
||||||
|
resolved_dnssec: false
|
||||||
|
|
||||||
|
# dns.as250.net: 194.150.168.168
|
||||||
|
#
|
||||||
|
resolved_fallback_nameserver:
|
||||||
|
- 194.150.168.168
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/users
|
||||||
|
# ---
|
||||||
|
|
||||||
|
default_user:
|
||||||
|
|
||||||
|
- name: chris
|
||||||
|
password: $y$j9T$JPKlR6kIk7GJStSdmAQWq/$e1vJER6KL/dk1diFNtC.COw9lu2uT6ZdrUgGcNVb912
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
|
||||||
|
# password: 9xFXkdPR_2
|
||||||
|
- name: sysadm
|
||||||
|
user_id: 1050
|
||||||
|
group_id: 1050
|
||||||
|
group: sysadm
|
||||||
|
password: $y$j9T$sHxqz7NyYdn38ZegSbewO.$PPHR0n.XeMcS3AQ9KybllBT.2hxpYlQ7AiVhxHgUOX8
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
|
||||||
|
# password: Iar-zrq4wG.2
|
||||||
|
- name: winadm
|
||||||
|
user_id: 1055
|
||||||
|
group_id: 1055
|
||||||
|
group: winadm
|
||||||
|
append: true
|
||||||
|
groups:
|
||||||
|
- sysadm
|
||||||
|
home: /home/winadm
|
||||||
|
password: $y$j9T$FIN.5hpIbyFh/zx8a3xVZ.$jn9b12BUW57PEXGp3288t/dVBB7glyTgj/58QyYOG7D
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
|
||||||
|
- name: back
|
||||||
|
user_id: 1060
|
||||||
|
group_id: 1060
|
||||||
|
group: back
|
||||||
|
password: $y$j9T$WmitGB98lhPLJ39Iy4YfH.$irv0LP1bB5ImQKBUr1acEif6Ed6zDu6gLQuGQd/i5s0
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKd0AwTHbDBK4Dgs+IZWmtnDBjoVIogOUvkLIYvsff1y root@backup.open.de'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINj0nCdFOZm51AVCfPbZ22QROIEiboXZ7RamHvM2E9IM root@backup.warenform.de'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBZQMCGCyIvs5hoNDoTIkKvKmEbxLf+uCYI1vx//ZQYY root@o26-backup'
|
||||||
|
|
||||||
|
- name: borg
|
||||||
|
user_id: 1065
|
||||||
|
group_id: 1065
|
||||||
|
group: borg
|
||||||
|
home: /home/borg
|
||||||
|
password: $y$j9T$JPKlR6kIk7GJStSdmAQWq/$e1vJER6KL/dk1diFNtC.COw9lu2uT6ZdrUgGcNVb912
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKd0AwTHbDBK4Dgs+IZWmtnDBjoVIogOUvkLIYvsff1y root@backup.open.de'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF7MKFmJ2kJrNs5DhlPqfizZgz3wNpzFAITo63p/VBOe root@file-ah'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIItQLQ7lhBY2USF4Jcp4teF+1NydI73VeHYbQW8q4Mcw root@gw-ah'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/cron.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
cron_user_entries:
|
||||||
|
|
||||||
|
- name: "Check if postfix mailservice is running. Restart service if needed."
|
||||||
|
minute: "*/5"
|
||||||
|
hour: "*"
|
||||||
|
job: /root/bin/monitoring/check_postfix.sh
|
||||||
|
|
||||||
|
- name: "Check Postfix E-Mail LOG file for 'fatal' errors."
|
||||||
|
minute: "*/30"
|
||||||
|
hour: "*"
|
||||||
|
job: /root/bin/postfix/check-postfix-fatal-errors.sh
|
||||||
|
|
||||||
|
- name: "Clean up Samba Trash Dirs"
|
||||||
|
minute: "02"
|
||||||
|
hour: "23"
|
||||||
|
job: /root/bin/samba/clean_samba_trash.sh
|
||||||
|
|
||||||
|
- name: "Set (group and access) Permissons for Samba shares"
|
||||||
|
minute: "14"
|
||||||
|
hour: "23"
|
||||||
|
job: /root/bin/samba/set_permissions_samba_shares.sh
|
||||||
|
|
||||||
|
- name: "Check if ntpsec is running. Restart service if needed."
|
||||||
|
minute: "*/6"
|
||||||
|
hour: "*"
|
||||||
|
job: /root/bin/monitoring/check_ntpsec_service.sh
|
||||||
|
|
||||||
|
|
||||||
|
cron_user_special_time_entries:
|
||||||
|
|
||||||
|
- name: "Restart DNS Cache service 'systemd-resolved'"
|
||||||
|
special_time: reboot
|
||||||
|
job: "sleep 10 ; /bin/systemctl restart systemd-resolved"
|
||||||
|
insertafter: PATH
|
||||||
|
|
||||||
|
#cron_user_special_time_entries:
|
||||||
|
#
|
||||||
|
# - name: "Restart DNS Cache service 'systemd-resolved'"
|
||||||
|
# special_time: reboot
|
||||||
|
# job: "sleep 10 ; /bin/systemctl restart systemd-resolved"
|
||||||
|
# insertafter: PATH
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/users.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/users-systemfiles.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/webadmin-user.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/sudoers.yml
|
||||||
|
# ---
|
||||||
|
#
|
||||||
|
# see: roles/common/tasks/vars
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/caching-nameserver.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/git.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/nfs.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
nfs_server: 192.168.100.20
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/samba-config-server.yml
|
||||||
|
# vars used by roles/common/tasks/samba-user.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
samba_server_ip: 192.168.100.20
|
||||||
|
samba_server_cidr_prefix: 24
|
||||||
|
|
||||||
|
samba_workgroup: AH-NEU
|
||||||
|
|
||||||
|
samba_netbios_name: FILE-AH-NEU
|
||||||
|
|
||||||
|
samba_groups:
|
||||||
|
- name: verwaltung
|
||||||
|
group_id: 120
|
||||||
|
- name: intern
|
||||||
|
group_id: 121
|
||||||
|
- name: hoffmann-elberling
|
||||||
|
group_id: 122
|
||||||
|
- name: gubitz-partner
|
||||||
|
group_id: 123
|
||||||
|
- name: sysadm
|
||||||
|
group_id: 1050
|
||||||
|
- name: install
|
||||||
|
group_id: 1070
|
||||||
|
|
||||||
|
samba_user:
|
||||||
|
|
||||||
|
- name: chris
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
63643330373231636537366333326630333265303265653933613835656262323863363038653234
|
||||||
|
3462653135633266373439626263356636646637643035340a653466356235346663626163306363
|
||||||
|
61313164643061306433643738643563303036646334376536626531383965303036386162393832
|
||||||
|
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
||||||
|
3631
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
63643330373231636537366333326630333265303265653933613835656262323863363038653234
|
||||||
|
3462653135633266373439626263356636646637643035340a653466356235346663626163306363
|
||||||
|
61313164643061306433643738643563303036646334376536626531383965303036386162393832
|
||||||
|
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
||||||
|
3631
|
||||||
|
|
||||||
|
- name: buero
|
||||||
|
groups:
|
||||||
|
- verwaltung
|
||||||
|
- intern
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: 'buero2011'
|
||||||
|
|
||||||
|
- name: axel
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: 'ah-kiel.2018'
|
||||||
|
|
||||||
|
- name: bjoern
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: 'bjoern2011'
|
||||||
|
|
||||||
|
- name: gubitz
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
password: '20gubitz12'
|
||||||
|
|
||||||
|
- name: schaar
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
password: '20schaar12'
|
||||||
|
|
||||||
|
- name: molkentin
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
password: 20molkentin12
|
||||||
|
|
||||||
|
- name: buerooben
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: 'buero2013'
|
||||||
|
|
||||||
|
- name: buchholz
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
password: '20-buch_holz-20'
|
||||||
|
|
||||||
|
- name: kiel-nb1
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: '20-note%book1-20'
|
||||||
|
|
||||||
|
- name: kiel-nb2
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: '20-note%book2-20'
|
||||||
|
|
||||||
|
- name: schmidt
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
password: '20-schmidt_21%'
|
||||||
|
|
||||||
|
- name: simone.schnoenmehl
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- gubitz-partner
|
||||||
|
password: '20-simone-schnoenmehl-22%'
|
||||||
|
|
||||||
|
- name: heckert
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- gubitz-partner
|
||||||
|
password: '0-heckert.22%'
|
||||||
|
|
||||||
|
- name: hh-lucke
|
||||||
|
groups: []
|
||||||
|
password: 'Ole20Steffen_17'
|
||||||
|
|
||||||
|
- name: hh-kanzlei
|
||||||
|
groups: []
|
||||||
|
password: '20-HH_18-Kanzlei'
|
||||||
|
|
||||||
|
- name: hh-jaenicke
|
||||||
|
groups: []
|
||||||
|
password: '20-th.jaenicke_%20'
|
||||||
|
|
||||||
|
- name: hh-pueschel
|
||||||
|
groups: []
|
||||||
|
password: '20-HH_caro.pueschel-%21'
|
||||||
|
|
||||||
|
- name: hh-kell
|
||||||
|
groups: []
|
||||||
|
password: '20-an.kell-%24'
|
||||||
|
|
||||||
|
- name: hh-neumann
|
||||||
|
groups: []
|
||||||
|
password: '20.neu-mann_%24'
|
||||||
|
|
||||||
|
# password: Iar-zrq4wG.2
|
||||||
|
- name: winadm
|
||||||
|
groups:
|
||||||
|
- sysadm
|
||||||
|
- install
|
||||||
|
password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
31326630303038396164656266623339353031336434376531383133643266656133363165316532
|
||||||
|
6364343131656235313432356230646337373362343938660a393031323561326438653935393632
|
||||||
|
34373464313666343433626635656261323933353631393632626166643738386333636639303334
|
||||||
|
3661613165626230640a306236363161356239306232633565336131303066383464626164636133
|
||||||
|
3038
|
||||||
|
|
||||||
|
- name: hh-stork
|
||||||
|
groups: []
|
||||||
|
password: '20-ni-na.stork_%24'
|
||||||
|
|
||||||
|
- name: back
|
||||||
|
groups: []
|
||||||
|
password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
63643330373231636537366333326630333265303265653933613835656262323863363038653234
|
||||||
|
3462653135633266373439626263356636646637643035340a653466356235346663626163306363
|
||||||
|
61313164643061306433643738643563303036646334376536626531383965303036386162393832
|
||||||
|
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
||||||
|
3631
|
||||||
|
|
||||||
|
# password: 9xFXkdPR_2
|
||||||
|
- name: sysadm
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
- install
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
35323634653231353634343232326436393435386366396364373766306135636536323165656362
|
||||||
|
3138366263316231333038343930313134333565373566640a363932616535343538376333313335
|
||||||
|
64326566643163366533356464326339653236636562363336633738656631626433306661323835
|
||||||
|
3337663865333636660a626131366161636433613561613235333831653733383365623564313431
|
||||||
|
6439
|
||||||
|
|
||||||
|
base_home: /home
|
||||||
|
|
||||||
|
# remove_samba_users:
|
||||||
|
# - name: name1
|
||||||
|
# - name: name2
|
||||||
|
#
|
||||||
|
remove_samba_users: []
|
||||||
|
|
||||||
|
samba_shares:
|
||||||
|
|
||||||
|
- name: Buero
|
||||||
|
path: /data/samba/shares/Buero
|
||||||
|
group_valid_users: intern
|
||||||
|
group_write_list: intern
|
||||||
|
file_create_mask: !!str 664
|
||||||
|
dir_create_mask: !!str 2775
|
||||||
|
vfs_object_recycle: true
|
||||||
|
recycle_path: '@Recycle'
|
||||||
|
|
||||||
|
- name: Verwaltung
|
||||||
|
path: /data/samba/shares/Verwaltung
|
||||||
|
group_valid_users: verwaltung
|
||||||
|
group_write_list: verwaltung
|
||||||
|
file_create_mask: !!str 660
|
||||||
|
dir_create_mask: !!str 2770
|
||||||
|
vfs_object_recycle: true
|
||||||
|
recycle_path: '@Recycle'
|
||||||
|
|
||||||
|
- name: Scans_schnell
|
||||||
|
path: /data/samba/shares/Scans_schnell
|
||||||
|
group_valid_users: intern
|
||||||
|
group_write_list: intern
|
||||||
|
file_create_mask: !!str 664
|
||||||
|
dir_create_mask: !!str 2775
|
||||||
|
vfs_object_recycle: true
|
||||||
|
recycle_path: '@Recycle'
|
||||||
|
|
||||||
|
- name: Hoffmann-Elberling
|
||||||
|
path: /data/samba/shares/Hoffmann-Elberling
|
||||||
|
group_valid_users: hoffmann-elberling
|
||||||
|
group_write_list: hoffmann-elberling
|
||||||
|
file_create_mask: !!str 664
|
||||||
|
dir_create_mask: !!str 2775
|
||||||
|
vfs_object_recycle: true
|
||||||
|
recycle_path: '@Recycle'
|
||||||
|
|
||||||
|
- name: Gubitz-Partner
|
||||||
|
path: /data/samba/shares/Gubitz-Partner
|
||||||
|
group_valid_users: gubitz-partner
|
||||||
|
group_write_list: gubitz-partner
|
||||||
|
file_create_mask: !!str 664
|
||||||
|
dir_create_mask: !!str 2775
|
||||||
|
vfs_object_recycle: true
|
||||||
|
recycle_path: '@Recycle'
|
||||||
|
|
||||||
|
- name: Gubitz-Backup
|
||||||
|
path: /data/samba/non-backup-shares/Gubitz-Backup
|
||||||
|
group_valid_users: gubitz
|
||||||
|
group_write_list: gubitz
|
||||||
|
file_create_mask: !!str 660
|
||||||
|
dir_create_mask: !!str 2770
|
||||||
|
vfs_object_recycle: true
|
||||||
|
recycle_path: '@Recycle'
|
||||||
|
|
||||||
|
- name: Install
|
||||||
|
path: /data/samba/shares/install
|
||||||
|
group_valid_users: install
|
||||||
|
group_write_list: install
|
||||||
|
file_create_mask: !!str 660
|
||||||
|
dir_create_mask: !!str 2770
|
||||||
|
vfs_object_recycle: true
|
||||||
|
recycle_path: '@Recycle'
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# - This share will be written by Windows Server 2016 configured at
|
||||||
|
# - "Windows Zubehör" -> "Windows Server-Sicherung"
|
||||||
|
# ---
|
||||||
|
- name: WinServer2016-Backup
|
||||||
|
comment: WinServer2016-Backup on Fileserver
|
||||||
|
path: /data/samba/shares/WinServer2016-Backup
|
||||||
|
group_valid_users: sysadm
|
||||||
|
group_write_list: sysadm
|
||||||
|
file_create_mask: !!str 664
|
||||||
|
dir_create_mask: !!str 2775
|
||||||
|
guest_ok: !!str yes
|
||||||
|
vfs_object_recycle: false
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# - This share will be written by windows schedulescript 'backup-advoware.bat'
|
||||||
|
# ---
|
||||||
|
- name: Advoware-Backup
|
||||||
|
comment: Advoware-Backup (only read) on Fileserver
|
||||||
|
path: /data/samba/shares/Advoware-Backup
|
||||||
|
group_valid_users: back
|
||||||
|
group_write_list: back
|
||||||
|
file_create_mask: !!str 664
|
||||||
|
dir_create_mask: !!str 2775
|
||||||
|
guest_ok: !!str yes
|
||||||
|
vfs_object_recycle: false
|
||||||
|
|
||||||
|
|
||||||
|
# ==============================
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by scripts/reset_root_passwd.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
root_user:
|
||||||
|
name: root
|
||||||
|
password: $6$J1ssJfdshf/$mknQEPDcW4HN5.wFfawbamamywI7F7fhdZmaR1abNrc4DA7DNRx766lz3ygf9YV3gcmRq3QhJ3fBVlkwGMCvq.
|
||||||
@@ -181,6 +181,7 @@ default_user:
|
|||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
|
||||||
|
# password: 9xFXkdPR_2
|
||||||
- name: sysadm
|
- name: sysadm
|
||||||
user_id: 1050
|
user_id: 1050
|
||||||
group_id: 1050
|
group_id: 1050
|
||||||
@@ -191,12 +192,16 @@ default_user:
|
|||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
|
||||||
- name: localadmin
|
# password: Iar-zrq4wG.2
|
||||||
user_id: 1051
|
- name: winadm
|
||||||
group_id: 1051
|
user_id: 1055
|
||||||
group: localadmin
|
group_id: 1055
|
||||||
home: /home/localadmin
|
group: winadm
|
||||||
password: $y$j9T$1WH8G2UkuN1jjp4QLuoeC0$dXpOnJUfMMAqAXlwN8XD0pq78r.a4UZOgt3LY4afxy/
|
append: true
|
||||||
|
groups:
|
||||||
|
- sysadm
|
||||||
|
home: /home/winadm
|
||||||
|
password: $y$j9T$FIN.5hpIbyFh/zx8a3xVZ.$jn9b12BUW57PEXGp3288t/dVBB7glyTgj/58QyYOG7D
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
@@ -214,7 +219,6 @@ default_user:
|
|||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINj0nCdFOZm51AVCfPbZ22QROIEiboXZ7RamHvM2E9IM root@backup.warenform.de'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINj0nCdFOZm51AVCfPbZ22QROIEiboXZ7RamHvM2E9IM root@backup.warenform.de'
|
||||||
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBZQMCGCyIvs5hoNDoTIkKvKmEbxLf+uCYI1vx//ZQYY root@o26-backup'
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBZQMCGCyIvs5hoNDoTIkKvKmEbxLf+uCYI1vx//ZQYY root@o26-backup'
|
||||||
|
|
||||||
|
|
||||||
- name: borg
|
- name: borg
|
||||||
user_id: 1065
|
user_id: 1065
|
||||||
group_id: 1065
|
group_id: 1065
|
||||||
@@ -309,50 +313,6 @@ samba_groups:
|
|||||||
|
|
||||||
samba_user:
|
samba_user:
|
||||||
|
|
||||||
- name: axel
|
|
||||||
groups:
|
|
||||||
- intern
|
|
||||||
- verwaltung
|
|
||||||
- hoffmann-elberling
|
|
||||||
password: 'ah-kiel.2018'
|
|
||||||
|
|
||||||
- name: back
|
|
||||||
groups: []
|
|
||||||
password: !vault |
|
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
63643330373231636537366333326630333265303265653933613835656262323863363038653234
|
|
||||||
3462653135633266373439626263356636646637643035340a653466356235346663626163306363
|
|
||||||
61313164643061306433643738643563303036646334376536626531383965303036386162393832
|
|
||||||
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
|
||||||
3631
|
|
||||||
|
|
||||||
- name: bjoern
|
|
||||||
groups:
|
|
||||||
- intern
|
|
||||||
- verwaltung
|
|
||||||
- hoffmann-elberling
|
|
||||||
password: 'bjoern2011'
|
|
||||||
|
|
||||||
- name: buchholz
|
|
||||||
groups:
|
|
||||||
- buero
|
|
||||||
- intern
|
|
||||||
- verwaltung
|
|
||||||
password: '20-buch_holz-20'
|
|
||||||
|
|
||||||
- name: buero
|
|
||||||
groups:
|
|
||||||
- verwaltung
|
|
||||||
- intern
|
|
||||||
password: 'buero2011'
|
|
||||||
|
|
||||||
- name: buerooben
|
|
||||||
groups:
|
|
||||||
- intern
|
|
||||||
- verwaltung
|
|
||||||
- hoffmann-elberling
|
|
||||||
password: 'buero2013'
|
|
||||||
|
|
||||||
- name: chris
|
- name: chris
|
||||||
groups:
|
groups:
|
||||||
- buero
|
- buero
|
||||||
@@ -368,6 +328,43 @@ samba_user:
|
|||||||
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
||||||
3631
|
3631
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
63643330373231636537366333326630333265303265653933613835656262323863363038653234
|
||||||
|
3462653135633266373439626263356636646637643035340a653466356235346663626163306363
|
||||||
|
61313164643061306433643738643563303036646334376536626531383965303036386162393832
|
||||||
|
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
||||||
|
3631
|
||||||
|
|
||||||
|
- name: buero
|
||||||
|
groups:
|
||||||
|
- verwaltung
|
||||||
|
- intern
|
||||||
|
- hoffmann-elberling
|
||||||
|
- gubitz-partner
|
||||||
|
password: 'buero2011'
|
||||||
|
|
||||||
|
- name: axel
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: 'ah-kiel.2018'
|
||||||
|
|
||||||
|
- name: bjoern
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: 'bjoern2011'
|
||||||
|
|
||||||
- name: gubitz
|
- name: gubitz
|
||||||
groups:
|
groups:
|
||||||
- intern
|
- intern
|
||||||
@@ -375,39 +372,33 @@ samba_user:
|
|||||||
- gubitz-partner
|
- gubitz-partner
|
||||||
password: '20gubitz12'
|
password: '20gubitz12'
|
||||||
|
|
||||||
- name: heckert
|
- name: schaar
|
||||||
groups:
|
groups:
|
||||||
- intern
|
- intern
|
||||||
|
- verwaltung
|
||||||
- gubitz-partner
|
- gubitz-partner
|
||||||
password: '0-heckert.22%'
|
password: '20schaar12'
|
||||||
|
|
||||||
- name: hh-jaenicke
|
- name: molkentin
|
||||||
groups: []
|
groups:
|
||||||
password: '20-th.jaenicke_%20'
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- gubitz-partner
|
||||||
|
password: 20molkentin12
|
||||||
|
|
||||||
- name: hh-kanzlei
|
- name: buerooben
|
||||||
groups: []
|
groups:
|
||||||
password: '20-HH_18-Kanzlei'
|
- intern
|
||||||
|
- verwaltung
|
||||||
|
- hoffmann-elberling
|
||||||
|
password: 'buero2013'
|
||||||
|
|
||||||
- name: hh-lucke
|
- name: buchholz
|
||||||
groups: []
|
groups:
|
||||||
password: 'Ole20Steffen_17'
|
- buero
|
||||||
|
- intern
|
||||||
- name: hh-kell
|
- verwaltung
|
||||||
groups: []
|
password: '20-buch_holz-20'
|
||||||
password: '20-an.kell-%24'
|
|
||||||
|
|
||||||
- name: hh-neumann
|
|
||||||
groups: []
|
|
||||||
password: '20.neu-mann_%24'
|
|
||||||
|
|
||||||
- name: hh-pueschel
|
|
||||||
groups: []
|
|
||||||
password: '20-HH_caro.pueschel-%21'
|
|
||||||
|
|
||||||
- name: hh-stork
|
|
||||||
groups: []
|
|
||||||
password: '20-ni-na.stork_%24'
|
|
||||||
|
|
||||||
- name: kiel-nb1
|
- name: kiel-nb1
|
||||||
groups:
|
groups:
|
||||||
@@ -427,20 +418,6 @@ samba_user:
|
|||||||
- hoffmann-elberling
|
- hoffmann-elberling
|
||||||
password: '20-note%book2-20'
|
password: '20-note%book2-20'
|
||||||
|
|
||||||
- name: molkentin
|
|
||||||
groups:
|
|
||||||
- intern
|
|
||||||
- verwaltung
|
|
||||||
- gubitz-partner
|
|
||||||
password: 20molkentin12
|
|
||||||
|
|
||||||
- name: schaar
|
|
||||||
groups:
|
|
||||||
- intern
|
|
||||||
- verwaltung
|
|
||||||
- gubitz-partner
|
|
||||||
password: '20schaar12'
|
|
||||||
|
|
||||||
- name: schmidt
|
- name: schmidt
|
||||||
groups:
|
groups:
|
||||||
- intern
|
- intern
|
||||||
@@ -454,6 +431,63 @@ samba_user:
|
|||||||
- gubitz-partner
|
- gubitz-partner
|
||||||
password: '20-simone-schnoenmehl-22%'
|
password: '20-simone-schnoenmehl-22%'
|
||||||
|
|
||||||
|
- name: heckert
|
||||||
|
groups:
|
||||||
|
- intern
|
||||||
|
- gubitz-partner
|
||||||
|
password: '0-heckert.22%'
|
||||||
|
|
||||||
|
- name: hh-lucke
|
||||||
|
groups: []
|
||||||
|
password: 'Ole20Steffen_17'
|
||||||
|
|
||||||
|
- name: hh-kanzlei
|
||||||
|
groups: []
|
||||||
|
password: '20-HH_18-Kanzlei'
|
||||||
|
|
||||||
|
- name: hh-jaenicke
|
||||||
|
groups: []
|
||||||
|
password: '20-th.jaenicke_%20'
|
||||||
|
|
||||||
|
- name: hh-pueschel
|
||||||
|
groups: []
|
||||||
|
password: '20-HH_caro.pueschel-%21'
|
||||||
|
|
||||||
|
- name: hh-kell
|
||||||
|
groups: []
|
||||||
|
password: '20-an.kell-%24'
|
||||||
|
|
||||||
|
- name: hh-neumann
|
||||||
|
groups: []
|
||||||
|
password: '20.neu-mann_%24'
|
||||||
|
|
||||||
|
# password: Iar-zrq4wG.2
|
||||||
|
- name: winadm
|
||||||
|
groups:
|
||||||
|
- sysadm
|
||||||
|
- install
|
||||||
|
password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
31326630303038396164656266623339353031336434376531383133643266656133363165316532
|
||||||
|
6364343131656235313432356230646337373362343938660a393031323561326438653935393632
|
||||||
|
34373464313666343433626635656261323933353631393632626166643738386333636639303334
|
||||||
|
3661613165626230640a306236363161356239306232633565336131303066383464626164636133
|
||||||
|
3038
|
||||||
|
|
||||||
|
- name: hh-stork
|
||||||
|
groups: []
|
||||||
|
password: '20-ni-na.stork_%24'
|
||||||
|
|
||||||
|
- name: back
|
||||||
|
groups: []
|
||||||
|
password: !vault |
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
63643330373231636537366333326630333265303265653933613835656262323863363038653234
|
||||||
|
3462653135633266373439626263356636646637643035340a653466356235346663626163306363
|
||||||
|
61313164643061306433643738643563303036646334376536626531383965303036386162393832
|
||||||
|
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
||||||
|
3631
|
||||||
|
|
||||||
# password: 9xFXkdPR_2
|
# password: 9xFXkdPR_2
|
||||||
- name: sysadm
|
- name: sysadm
|
||||||
groups:
|
groups:
|
||||||
@@ -471,19 +505,6 @@ samba_user:
|
|||||||
3337663865333636660a626131366161636433613561613235333831653733383365623564313431
|
3337663865333636660a626131366161636433613561613235333831653733383365623564313431
|
||||||
6439
|
6439
|
||||||
|
|
||||||
# password: Iar-zrq4wG.2
|
|
||||||
- name: winadm
|
|
||||||
groups:
|
|
||||||
- sysadm
|
|
||||||
- install
|
|
||||||
password: !vault |
|
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
31326630303038396164656266623339353031336434376531383133643266656133363165316532
|
|
||||||
6364343131656235313432356230646337373362343938660a393031323561326438653935393632
|
|
||||||
34373464313666343433626635656261323933353631393632626166643738386333636639303334
|
|
||||||
3661613165626230640a306236363161356239306232633565336131303066383464626164636133
|
|
||||||
3038
|
|
||||||
|
|
||||||
base_home: /home
|
base_home: /home
|
||||||
|
|
||||||
# remove_samba_users:
|
# remove_samba_users:
|
||||||
|
|||||||
@@ -364,6 +364,12 @@ samba_user:
|
|||||||
groups:
|
groups:
|
||||||
- buero
|
- buero
|
||||||
password: 'X_2yYs2AIo.E'
|
password: 'X_2yYs2AIo.E'
|
||||||
|
|
||||||
|
- name: clara
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
password: '52uT-/vP.ZpX'
|
||||||
|
|
||||||
# - name: lap-02
|
# - name: lap-02
|
||||||
# groups:
|
# groups:
|
||||||
# - buero
|
# - buero
|
||||||
|
|||||||
@@ -423,6 +423,7 @@ samba_user:
|
|||||||
- name: lino.koehler
|
- name: lino.koehler
|
||||||
groups:
|
groups:
|
||||||
- projekte
|
- projekte
|
||||||
|
- team
|
||||||
password: '20.l1no-ko3hl3r_25/'
|
password: '20.l1no-ko3hl3r_25/'
|
||||||
|
|
||||||
- name: maite.gabriel
|
- name: maite.gabriel
|
||||||
|
|||||||
@@ -189,6 +189,8 @@ network_interfaces:
|
|||||||
#- /sbin/ip route add 192.168.73.0/24 via 172.16.111.254
|
#- /sbin/ip route add 192.168.73.0/24 via 172.16.111.254
|
||||||
# User Network Novalishaus
|
# User Network Novalishaus
|
||||||
- /sbin/ip route add 192.168.81.0/24 via 172.16.111.254
|
- /sbin/ip route add 192.168.81.0/24 via 172.16.111.254
|
||||||
|
# User Network Georgshaus
|
||||||
|
- /sbin/ip route add 192.168.85.0/24 via 172.16.111.254
|
||||||
# Management Network Stockhausen
|
# Management Network Stockhausen
|
||||||
- /sbin/ip route add 10.10.11.0/24 via 172.16.111.254
|
- /sbin/ip route add 10.10.11.0/24 via 172.16.111.254
|
||||||
# Depreated Management Network Stokhausen
|
# Depreated Management Network Stokhausen
|
||||||
@@ -213,7 +215,7 @@ network_interfaces:
|
|||||||
- /sbin/ip route add 10.10.111.0/24 via 172.16.111.254
|
- /sbin/ip route add 10.10.111.0/24 via 172.16.111.254
|
||||||
# VPN Netz Stockhausen - Novalishaus (Schlechtenwegen)
|
# VPN Netz Stockhausen - Novalishaus (Schlechtenwegen)
|
||||||
- /sbin/ip route add 10.2.81.0/24 via 172.16.111.254
|
- /sbin/ip route add 10.2.81.0/24 via 172.16.111.254
|
||||||
# VPN Home Stockhause
|
# VPN Home Stockhausen
|
||||||
- /sbin/ip route add 10.0.11.0/24 via 172.16.111.254
|
- /sbin/ip route add 10.0.11.0/24 via 172.16.111.254
|
||||||
# - FritzBoxen Stockhausen
|
# - FritzBoxen Stockhausen
|
||||||
- /sbin/ip route add 172.16.11.0/24 via 172.16.111.254
|
- /sbin/ip route add 172.16.11.0/24 via 172.16.111.254
|
||||||
@@ -223,6 +225,8 @@ network_interfaces:
|
|||||||
- /sbin/ip route add 172.16.80.0/24 via 172.16.111.254
|
- /sbin/ip route add 172.16.80.0/24 via 172.16.111.254
|
||||||
# - DigitBox Novalishaus
|
# - DigitBox Novalishaus
|
||||||
- /sbin/ip route add 172.16.81.0/24 via 172.16.111.254
|
- /sbin/ip route add 172.16.81.0/24 via 172.16.111.254
|
||||||
|
# - FritzBox georgshaus
|
||||||
|
- /sbin/ip route add 172.16.85.0/24 via 172.16.111.254
|
||||||
|
|
||||||
|
|
||||||
- device: eth4
|
- device: eth4
|
||||||
@@ -425,6 +429,8 @@ bind9_gateway_acl:
|
|||||||
- '# Nameserver Gateway Novalishaus'
|
- '# Nameserver Gateway Novalishaus'
|
||||||
- 192.168.81.1
|
- 192.168.81.1
|
||||||
- 10.2.11.2
|
- 10.2.11.2
|
||||||
|
- '# Nameserver Gateway Georgshaus'
|
||||||
|
- 192.168.85.1
|
||||||
- '# Nameserver wolle'
|
- '# Nameserver wolle'
|
||||||
- 10.113.12.3
|
- 10.113.12.3
|
||||||
- '# Postfix Mailserver'
|
- '# Postfix Mailserver'
|
||||||
|
|||||||
407
host_vars/ga-gh-gw.oopen.de.yml
Normal file
407
host_vars/ga-gh-gw.oopen.de.yml
Normal file
@@ -0,0 +1,407 @@
|
|||||||
|
---
|
||||||
|
# ---
|
||||||
|
# vars used by roles/network_interfaces
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# If true, all additional files in /etc/network/interfaces/interfaces.d/ are deleted
|
||||||
|
network_manage_devices: True
|
||||||
|
|
||||||
|
# Should the interfaces be reloaded after config change?
|
||||||
|
network_interface_reload: False
|
||||||
|
|
||||||
|
network_interface_path: /etc/network/interfaces.d
|
||||||
|
network_interface_required_packages:
|
||||||
|
- vlan
|
||||||
|
- bridge-utils
|
||||||
|
- ifmetric
|
||||||
|
- ifupdown
|
||||||
|
- ifenslave
|
||||||
|
|
||||||
|
network_interfaces:
|
||||||
|
|
||||||
|
- device: eno1
|
||||||
|
headline: eno1 - Uplink WiDSL via (static) line to Fritz!Box 7490
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 172.16.85.1
|
||||||
|
netmask: 24
|
||||||
|
gateway: 172.16.85.254
|
||||||
|
|
||||||
|
|
||||||
|
- device: eno2
|
||||||
|
headline: eno2 - LAN
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 192.168.85.254
|
||||||
|
netmask: 24
|
||||||
|
post-up:
|
||||||
|
# VLAN 321 - for Ubiquiti UniFi Accesspoints Guest NET
|
||||||
|
- /sbin/ip link add link eno2 name eno2.25 type vlan id 25
|
||||||
|
# VLAN 331 - for Ubiquiti UniFi Accesspoints private NET
|
||||||
|
- /sbin/ip link add link eno2 name eno2.35 type vlan id 35
|
||||||
|
|
||||||
|
|
||||||
|
- device: eno2.25
|
||||||
|
headline: eno2 - VLAN 25 (Ubiquiti UniFi Accesspoints Guest NET)
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 10.25.15.254
|
||||||
|
netmask: 20
|
||||||
|
|
||||||
|
- device: eno2.35
|
||||||
|
headline: eno2 - VLAN 35 (Ubiquiti UniFi Accesspoints private NET)
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 10.35.15.254
|
||||||
|
netmask: 20
|
||||||
|
|
||||||
|
|
||||||
|
- device: eno2:ns
|
||||||
|
headline: eno2:ns - Alias on eno2 (Nameserver)
|
||||||
|
auto: true
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
address: 192.168.85.1
|
||||||
|
netmask: 32
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/ansible_dependencies
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/ansible_user
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/basic.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/cron.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
cron_user_entries:
|
||||||
|
|
||||||
|
- name: "Check if Postfix Mailservice is up and running?"
|
||||||
|
minute: "*/15"
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_postfix.sh
|
||||||
|
|
||||||
|
- name: "Check if SSH service is up and running?"
|
||||||
|
minute: "*/15"
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_ssh.sh
|
||||||
|
|
||||||
|
- name: "Check if OpenVPN service is up and running?"
|
||||||
|
minute: "*/30"
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_vpn.sh
|
||||||
|
|
||||||
|
- name: "Check if nameservice (bind) is running?"
|
||||||
|
minute: '*/10'
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_dns.sh
|
||||||
|
|
||||||
|
- name: "Check forwarding ( /proc/sys/net/ipv4/ip_forward contains \"1\" )"
|
||||||
|
minute: "0-59/2"
|
||||||
|
hour: '*'
|
||||||
|
job: /root/bin/monitoring/check_forwarding.sh
|
||||||
|
|
||||||
|
- name: "Copy gateway configuration"
|
||||||
|
minute: "09"
|
||||||
|
hour: "3"
|
||||||
|
job: /root/bin/manage-gw-config/copy_gateway-config.sh GA-NH
|
||||||
|
|
||||||
|
|
||||||
|
#cron_user_special_time_entries: []
|
||||||
|
cron_user_special_time_entries:
|
||||||
|
|
||||||
|
- name: "Check if Postfix Service is running at boot time"
|
||||||
|
special_time: reboot
|
||||||
|
job: "sleep 7 ; /root/bin/monitoring/check_postfix.sh"
|
||||||
|
insertafter: PATH
|
||||||
|
|
||||||
|
- name: "Restart Systemd's resolved at boottime."
|
||||||
|
special_time: reboot
|
||||||
|
job: "sleep 10 ; /bin/systemctl restart systemd-resolved"
|
||||||
|
insertafter: PATH
|
||||||
|
|
||||||
|
- name: "Restart NTP service 'ntpsec'"
|
||||||
|
special_time: reboot
|
||||||
|
job: "sleep 15 ; /bin/systemctl restart ntpsec"
|
||||||
|
insertafter: PATH
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/sshd.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/apt.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/systemd-resolved.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
systemd_resolved: true
|
||||||
|
|
||||||
|
# CyberGhost - Schnelle Verbindung mit Keine-Logs-Datenschutzrichtlinie
|
||||||
|
# Primäre DNS-Adresse: 38.132.106.139
|
||||||
|
# Sekundäre DNS-Adresse: 194.187.251.67
|
||||||
|
#
|
||||||
|
# Cloudflare (USA) Bester kostenloser DNS-Server für Gaming mit zuverlässigen Verbindungen
|
||||||
|
# primäre DNS-Adresse
|
||||||
|
# IPv4: 1.1.1.1
|
||||||
|
# IPv6: 2606:4700:4700::1111
|
||||||
|
# sekundäre DNS-Adresse
|
||||||
|
# IPv4: 1.0.0.1
|
||||||
|
# IPv6: 2606:4700:4700::1001
|
||||||
|
#
|
||||||
|
# Google (USA) Public DNS - Großartige Kombination aus Geschwindigkeit und Sicherheit
|
||||||
|
# primäre DNS-Adresse
|
||||||
|
# IPv4: 8.8.8.8
|
||||||
|
# IPv6: 2001:4860:4860::8888
|
||||||
|
# sekundäre DNS-Adresse
|
||||||
|
# IPv4: 8.8.4.4
|
||||||
|
# IPv6: 2001:4860:4860::8844
|
||||||
|
#
|
||||||
|
# Quad9 (CH) - Blockiert mühelos schädliche Seiten und verhindert Phishing-Betrug
|
||||||
|
# primäre DNS-Adresse
|
||||||
|
# IPv4: 9.9.9.9
|
||||||
|
# IPv6: 2620:fe::fe
|
||||||
|
# sekundäre DNS-Adresse
|
||||||
|
# IPv4: 149.112.112.112
|
||||||
|
# IPv6: 2620:fe::9
|
||||||
|
#
|
||||||
|
# OpenNIC - https://www.opennic.org/
|
||||||
|
# IPv4: 195.10.195.195 - ns31.de
|
||||||
|
# IPv4: 94.16.114.254 - ns28.de
|
||||||
|
# IPv4: 51.254.162.59 - ns9.de
|
||||||
|
# IPv4: 194.36.144.87 - ns29.de
|
||||||
|
# IPv6: 2a00:f826:8:2::195 - ns31.de
|
||||||
|
#
|
||||||
|
# Freifunk München (normales DNS, DNS-over-TLS und DNS-over-HTTPS)
|
||||||
|
# IPv4: 5.1.66.255
|
||||||
|
# IPv6: 2001:678:e68:f000::
|
||||||
|
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||||
|
# IPv4: 185.150.99.255
|
||||||
|
# IPv6: 2001:678:ed0:f000::
|
||||||
|
# Servername für DNS-over-TLS: dot.ffmuc.net
|
||||||
|
# für iOS 14+: DoT-Server-Konfiguration (unsigniert, vom PrHdb)
|
||||||
|
resolved_nameserver:
|
||||||
|
- 127.0.0.1
|
||||||
|
|
||||||
|
# search domains
|
||||||
|
#
|
||||||
|
# If there are more than one search domains, then specify them here in the order in which
|
||||||
|
# the resolver should also search them
|
||||||
|
#
|
||||||
|
#resolved_domains: []
|
||||||
|
resolved_domains:
|
||||||
|
- ~.
|
||||||
|
- ga.netz
|
||||||
|
- ga.intra
|
||||||
|
|
||||||
|
resolved_dnssec: false
|
||||||
|
|
||||||
|
# dns.as250.net: 194.150.168.168
|
||||||
|
#
|
||||||
|
resolved_fallback_nameserver:
|
||||||
|
- 194.150.168.168
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/users.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
insert_ssh_keypair_backup_server: false
|
||||||
|
ssh_keypair_backup_server:
|
||||||
|
- name: backup
|
||||||
|
backup_user: back
|
||||||
|
priv_key_src: root/.ssh/id_rsa.backup.oopen.de
|
||||||
|
priv_key_dest: /root/.ssh/id_rsa
|
||||||
|
pub_key_src: root/.ssh/id_rsa.backup.oopen.de.pub
|
||||||
|
pub_key_dest: /root/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
insert_keypair_backup_client: true
|
||||||
|
ssh_keypair_backup_client:
|
||||||
|
- name: backup
|
||||||
|
priv_key_src: root/.ssh/id_ed25519.oopen-server
|
||||||
|
priv_key_dest: /root/.ssh/id_ed25519
|
||||||
|
pub_key_src: root/.ssh/id_ed25519.oopen-server.pub
|
||||||
|
pub_key_dest: /root/.ssh/id_ed25519.pub
|
||||||
|
target: backup.oopen.de
|
||||||
|
|
||||||
|
default_user:
|
||||||
|
|
||||||
|
- name: chris
|
||||||
|
password: $y$j9T$rDrvWa/KInzTe601YYf9./$WjDlaItCrgX7gu4nCs481y8WLxiRaNJCC/MgFgKuzg3
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
|
||||||
|
- name: maadmin
|
||||||
|
password: $y$j9T$LCkYWvykWzrpFxIlmSUB01$e1ROfZxXAU53UdAwZAECzED4iV4LS02Q4IPQ2fycv51
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHCQRRXy0+9D+mhLniRlUpZZ3kZdZcQKXBsGnlsFYaRi maadmin@ga-st-lsx1'
|
||||||
|
|
||||||
|
- name: wadmin
|
||||||
|
password: $6$sLWIXKTW$i/STlSS0LijkrnGR/XMbaxJsEbrRdDYgqyCqIr.muLN5towes8yHDCXsyCYDjuaBNKPHXyFpr8lclg5DOm9OF1
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF5GDIFA6/i6lzkr+EP/EZM9glrK0eSR0nmrEFgUJ4n8 wadmin@ga-st-lsx1'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID17MN6fUg0D1dMSgVYIBpIy+sDBBmiaHmXRXU63TXJA wadmin@ga-st-li1303'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtK8/rxHL1MKX5AHrgAzUYu0kV+1iYCmknpTQ7F0ham wadmin@wolf-debtest'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIcaDFxj0pYjOv/ohFVxVY2RKvy6ACZFPX9UkrUPHkbN wadmin@wolf-x1'
|
||||||
|
|
||||||
|
- name: sysadm
|
||||||
|
user_id: 1050
|
||||||
|
group_id: 1050
|
||||||
|
group: sysadm
|
||||||
|
password: $y$j9T$awYUu9oRvV39ojITZOC7D1$czTh5HHIE32PXb0vl40ayAarm39txR4jaH1QzBscqfC
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHCQRRXy0+9D+mhLniRlUpZZ3kZdZcQKXBsGnlsFYaRi maadmin@ga-st-lsx1'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF5GDIFA6/i6lzkr+EP/EZM9glrK0eSR0nmrEFgUJ4n8 wadmin@ga-st-lsx1'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID17MN6fUg0D1dMSgVYIBpIy+sDBBmiaHmXRXU63TXJA wadmin@ga-st-li1303'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtK8/rxHL1MKX5AHrgAzUYu0kV+1iYCmknpTQ7F0ham wadmin@wolf-debtest'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIcaDFxj0pYjOv/ohFVxVY2RKvy6ACZFPX9UkrUPHkbN wadmin@wolf-x1'
|
||||||
|
|
||||||
|
- name: back
|
||||||
|
user_id: 1060
|
||||||
|
group_id: 1060
|
||||||
|
group: back
|
||||||
|
password: $y$j9T$wpg8hlvMpO4PAWSVdLoJq/$dgpQh4cEnbUOQkkZzKUM4S8XzNS/Md5gMmMuNTqec74
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
|
||||||
|
sudo_users:
|
||||||
|
- chris
|
||||||
|
- sysadm
|
||||||
|
- maadmin
|
||||||
|
- wadmin
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/users-systemfiles.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/webadmin-user.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/sudoers.yml
|
||||||
|
# ---
|
||||||
|
#
|
||||||
|
# see: roles/common/tasks/vars
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/caching-nameserver.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
install_bind_packages: true
|
||||||
|
|
||||||
|
bind9_gateway_acl:
|
||||||
|
- local-net:
|
||||||
|
name: local-net
|
||||||
|
entries:
|
||||||
|
- 127.0.0.0/8
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.168.0.0/16
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- fc00::/7
|
||||||
|
- fe80::/10
|
||||||
|
- ::1/128
|
||||||
|
- internaldns:
|
||||||
|
name: internaldns
|
||||||
|
entries:
|
||||||
|
- '# Nameserver Gateway Stockhausen'
|
||||||
|
- 192.168.11.1
|
||||||
|
- '# Domain Controller Stockhausen'
|
||||||
|
- 192.168.10.3
|
||||||
|
- '# Nameserver Gateway Altenschlirf'
|
||||||
|
- 192.168.10.1
|
||||||
|
- '# Domain Controller Altenschlirf'
|
||||||
|
- 192.168.10.3
|
||||||
|
- 192.168.10.6
|
||||||
|
- 172.16.0.1
|
||||||
|
- '# Nameserver Gateway Novalishaus'
|
||||||
|
- 192.168.81.1
|
||||||
|
- 10.2.11.2
|
||||||
|
- '# Nameserver Gateway Georgshaus'
|
||||||
|
- 192.168.85.1
|
||||||
|
- '# Nameserver wolle'
|
||||||
|
- 10.113.12.3
|
||||||
|
- '# Postfix Mailserver'
|
||||||
|
- 192.168.11.2
|
||||||
|
- '# Mail Relay System'
|
||||||
|
- 192.168.10.2
|
||||||
|
|
||||||
|
bind9_gateway_listen_on_v6:
|
||||||
|
- none
|
||||||
|
|
||||||
|
bind9_gateway_listen_on:
|
||||||
|
- any
|
||||||
|
|
||||||
|
#bind9_gateway_allow_transfer: {}
|
||||||
|
bind9_gateway_allow_transfer:
|
||||||
|
- none
|
||||||
|
|
||||||
|
bind9_transfer_source: !!str "192.168.85.1"
|
||||||
|
bind9_notify_source: !!str "192.168.85.1"
|
||||||
|
|
||||||
|
#bind9_gateway_allow_query: {}
|
||||||
|
bind9_gateway_allow_query:
|
||||||
|
- local-net
|
||||||
|
|
||||||
|
#bind9_gateway_allow_query_cache: {}
|
||||||
|
bind9_gateway_allow_query_cache:
|
||||||
|
- local-net
|
||||||
|
|
||||||
|
bind9_gateway_recursion: !!str "yes"
|
||||||
|
#bind9_gateway_allow_recursion: {}
|
||||||
|
bind9_gateway_allow_recursion:
|
||||||
|
- local-net
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by roles/common/tasks/git.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
git_firewall_repository:
|
||||||
|
name: ipt-gateway
|
||||||
|
repo: https://git.oopen.de/firewall/ipt-gateway
|
||||||
|
dest: /usr/local/src/ipt-gateway
|
||||||
|
|
||||||
|
# ==============================
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# vars used by scripts/reset_root_passwd.yml
|
||||||
|
# ---
|
||||||
|
|
||||||
|
root_user:
|
||||||
|
name: root
|
||||||
|
password: $6$J1ssJfdshf/$mknQEPDcW4HN5.wFfawbamamywI7F7fhdZmaR1abNrc4DA7DNRx766lz3ygf9YV3gcmRq3QhJ3fBVlkwGMCvq.
|
||||||
|
|
||||||
@@ -363,6 +363,8 @@ bind9_gateway_acl:
|
|||||||
- '# Nameserver Gateway Novalishaus'
|
- '# Nameserver Gateway Novalishaus'
|
||||||
- 192.168.81.1
|
- 192.168.81.1
|
||||||
- 10.2.11.2
|
- 10.2.11.2
|
||||||
|
- '# Nameserver Gateway Georgshaus'
|
||||||
|
- 192.168.85.1
|
||||||
- '# Nameserver wolle'
|
- '# Nameserver wolle'
|
||||||
- 10.113.12.3
|
- 10.113.12.3
|
||||||
- '# Postfix Mailserver'
|
- '# Postfix Mailserver'
|
||||||
|
|||||||
@@ -230,6 +230,8 @@ bind9_gateway_acl:
|
|||||||
- '# Nameserver Gateway Novalishaus'
|
- '# Nameserver Gateway Novalishaus'
|
||||||
- 192.168.81.1
|
- 192.168.81.1
|
||||||
- 10.2.11.2
|
- 10.2.11.2
|
||||||
|
- '# Nameserver Gateway Georgshaus'
|
||||||
|
- 192.168.85.1
|
||||||
- '# Nameserver wolle'
|
- '# Nameserver wolle'
|
||||||
- 10.113.12.3
|
- 10.113.12.3
|
||||||
- '# Postfix Mailserver'
|
- '# Postfix Mailserver'
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ network_interfaces:
|
|||||||
|
|
||||||
family: inet
|
family: inet
|
||||||
method: static
|
method: static
|
||||||
hwaddress: 9c:6b:00:51:bf:54
|
hwaddress: 9c:6b:00:2b:fe:4f
|
||||||
description:
|
description:
|
||||||
address: 176.9.62.77
|
address: 176.9.62.77
|
||||||
netmask: 27
|
netmask: 27
|
||||||
@@ -119,6 +119,98 @@ network_interfaces:
|
|||||||
gateway: 'fe80::1'
|
gateway: 'fe80::1'
|
||||||
|
|
||||||
|
|
||||||
|
- device: br1
|
||||||
|
# use only once per device (for the first device entry)
|
||||||
|
headline: br1 - bridge over device enp6s0.4001
|
||||||
|
|
||||||
|
# auto & allow are only used for the first device entry
|
||||||
|
allow: [] # array of allow-[stanzas] eg. allow-hotplug
|
||||||
|
auto: true
|
||||||
|
|
||||||
|
family: inet
|
||||||
|
method: static
|
||||||
|
hwaddress: 9c:6b:00:2b:fe:50
|
||||||
|
description:
|
||||||
|
address: 172.20.1.10
|
||||||
|
netmask: 24
|
||||||
|
gateway:
|
||||||
|
metric:
|
||||||
|
pointopoint:
|
||||||
|
mtu:
|
||||||
|
scope:
|
||||||
|
|
||||||
|
# additional user by dhcp method
|
||||||
|
#
|
||||||
|
hostname:
|
||||||
|
leasehours:
|
||||||
|
leasetime:
|
||||||
|
vendor:
|
||||||
|
client:
|
||||||
|
|
||||||
|
# additional used by bootp method
|
||||||
|
#
|
||||||
|
bootfile:
|
||||||
|
server:
|
||||||
|
hwaddr:
|
||||||
|
|
||||||
|
# optional dns settings nameservers: []
|
||||||
|
#
|
||||||
|
# nameservers:
|
||||||
|
# - 194.150.168.168 # dns.as250.net
|
||||||
|
# - 91.239.100.100 # anycast.censurfridns.dk
|
||||||
|
# search: warenform.de
|
||||||
|
#
|
||||||
|
# ** MOVED TO systemd-resolved
|
||||||
|
#
|
||||||
|
nameservers:
|
||||||
|
search:
|
||||||
|
|
||||||
|
# optional bridge parameters bridge: {}
|
||||||
|
# bridge:
|
||||||
|
# ports:
|
||||||
|
# stp:
|
||||||
|
# fd:
|
||||||
|
# maxwait:
|
||||||
|
# waitport:
|
||||||
|
bridge:
|
||||||
|
ports: enp6s0.4001 # for mor devices support a blank separated list
|
||||||
|
stp: !!str off
|
||||||
|
fd: 5
|
||||||
|
hello: 2
|
||||||
|
maxage: 12
|
||||||
|
|
||||||
|
# optional bonding parameters bond: {}
|
||||||
|
# bond:
|
||||||
|
# master
|
||||||
|
# primary
|
||||||
|
# slave
|
||||||
|
# method:
|
||||||
|
# miimon:
|
||||||
|
# lacp-rate:
|
||||||
|
# ad-select-rate:
|
||||||
|
# master:
|
||||||
|
# slaves:
|
||||||
|
bond: {}
|
||||||
|
|
||||||
|
# optional vlan settings | vlan: {}
|
||||||
|
# vlan: {}
|
||||||
|
# raw-device: 'eth0'
|
||||||
|
vlan: {}
|
||||||
|
|
||||||
|
# inline hook scripts
|
||||||
|
#pre-up: [] # pre-up script lines
|
||||||
|
pre-up:
|
||||||
|
- /sbin/ip link add link enp6s0 name enp6s0.4001 type vlan id 4001
|
||||||
|
- /sbin/ip link set enp6s0.4001 mtu 1400
|
||||||
|
up: [] # up script lines
|
||||||
|
#post-up: [] # post-up script lines (alias for up)
|
||||||
|
post-up: # post-up script lines (alias for up)
|
||||||
|
- /sbin/ip route add 172.20.0.0/21 via 172.20.1.1
|
||||||
|
pre-down: [] # pre-down script lines (alias for down)
|
||||||
|
down: [] # down script lines
|
||||||
|
post-down: [] # post-down script lines
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# vars used by roles/ansible_dependencies
|
# vars used by roles/ansible_dependencies
|
||||||
# ---
|
# ---
|
||||||
|
|||||||
@@ -161,6 +161,20 @@ cron_user_special_time_entries:
|
|||||||
# vars used by roles/common/tasks/users.yml
|
# vars used by roles/common/tasks/users.yml
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
|
extra_user:
|
||||||
|
|
||||||
|
- name: caracola
|
||||||
|
user_id: 1075
|
||||||
|
group_id: 1075
|
||||||
|
group: carola
|
||||||
|
# hS-a-6UC5.spCgNS
|
||||||
|
password: $y$j9T$TKCuCPZsnS.g3M8sPPFvo0$lxoGMooCH.Jyo5tXYEVAXNAlDV73Cj2haNFnrhjmAo6
|
||||||
|
shell: /bin/bash
|
||||||
|
ssh_keys:
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO90culn3sicU2chTHn40ytcTay0nUIHap0uF/5fVM6P chris@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOQHMUKlDh2ufno5pZOhUY5xFljC1R5zQ/GjOHDkS58D root@sol'
|
||||||
|
- 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMnap6I+g8xQvSZReP3CjwQ+O7okDhgCkrHaUCveOH8I marcus@caracola'
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# vars used by roles/common/tasks/users-systemfiles.yml
|
# vars used by roles/common/tasks/users-systemfiles.yml
|
||||||
@@ -260,6 +274,12 @@ samba_user:
|
|||||||
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
6631333038306462610a356535633265633563633962333137326533633834636331343562633765
|
||||||
3631
|
3631
|
||||||
|
|
||||||
|
- name: carlotta
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
- beratung
|
||||||
|
password: '20_car-lotta.25%'
|
||||||
|
|
||||||
- name: cristina
|
- name: cristina
|
||||||
groups:
|
groups:
|
||||||
- buero
|
- buero
|
||||||
@@ -277,6 +297,12 @@ samba_user:
|
|||||||
- buero
|
- buero
|
||||||
password: '20-printer-18'
|
password: '20-printer-18'
|
||||||
|
|
||||||
|
- name: hanna
|
||||||
|
groups:
|
||||||
|
- buero
|
||||||
|
- beratung
|
||||||
|
password: '6UR9+#anna-25'
|
||||||
|
|
||||||
- name: hannes
|
- name: hannes
|
||||||
groups:
|
groups:
|
||||||
- buero
|
- buero
|
||||||
|
|||||||
14
hosts
14
hosts
@@ -41,7 +41,6 @@ gw-123.oopen.de
|
|||||||
gw-ah.oopen.de
|
gw-ah.oopen.de
|
||||||
gw-ak.oopen.de
|
gw-ak.oopen.de
|
||||||
gw-akb.oopen.de
|
gw-akb.oopen.de
|
||||||
172.16.82.2
|
|
||||||
gw-dissens.oopen.de
|
gw-dissens.oopen.de
|
||||||
gw-ebs.oopen.de
|
gw-ebs.oopen.de
|
||||||
gw-fm.oopen.de
|
gw-fm.oopen.de
|
||||||
@@ -61,6 +60,7 @@ gw-kb.oopen.de
|
|||||||
|
|
||||||
bbb-server.b3-bornim.netz
|
bbb-server.b3-bornim.netz
|
||||||
file-ah.kanzlei-kiel.netz
|
file-ah.kanzlei-kiel.netz
|
||||||
|
file-ah-neu.kanzlei-kiel.netz
|
||||||
file-ebs.ebs.netz
|
file-ebs.ebs.netz
|
||||||
file-fm.fm.netz
|
file-fm.fm.netz
|
||||||
file-fhxb.fhxb.netz
|
file-fhxb.fhxb.netz
|
||||||
@@ -82,6 +82,7 @@ ga-st-gw.ga.netz
|
|||||||
ga-st-gw-neu.ga.netz
|
ga-st-gw-neu.ga.netz
|
||||||
ga-al-gw.oopen.de
|
ga-al-gw.oopen.de
|
||||||
ga-nh-gw.oopen.de
|
ga-nh-gw.oopen.de
|
||||||
|
ga-gh-gw.oopen.de
|
||||||
gw-campus.oopen.de
|
gw-campus.oopen.de
|
||||||
ga-st-lxc1.ga.netz
|
ga-st-lxc1.ga.netz
|
||||||
ga-st-mail.ga.netz
|
ga-st-mail.ga.netz
|
||||||
@@ -495,7 +496,6 @@ gw-ak.oopen.de
|
|||||||
|
|
||||||
# AKB
|
# AKB
|
||||||
gw-akb.oopen.de
|
gw-akb.oopen.de
|
||||||
172.16.82.2
|
|
||||||
|
|
||||||
# Dissens
|
# Dissens
|
||||||
gw-dissens.oopen.de
|
gw-dissens.oopen.de
|
||||||
@@ -541,6 +541,7 @@ gw-elster.oopen.de
|
|||||||
# - Kanzlei Kiel
|
# - Kanzlei Kiel
|
||||||
gw-ah.oopen.de
|
gw-ah.oopen.de
|
||||||
file-ah.kanzlei-kiel.netz
|
file-ah.kanzlei-kiel.netz
|
||||||
|
file-ah-neu.kanzlei-kiel.netz
|
||||||
|
|
||||||
# Kanzlei Kreuzbergstraße
|
# Kanzlei Kreuzbergstraße
|
||||||
gw-kb.oopen.de
|
gw-kb.oopen.de
|
||||||
@@ -564,6 +565,7 @@ ga-st-gw.ga.netz
|
|||||||
ga-st-gw-neu.ga.netz
|
ga-st-gw-neu.ga.netz
|
||||||
ga-al-gw.oopen.de
|
ga-al-gw.oopen.de
|
||||||
ga-nh-gw.oopen.de
|
ga-nh-gw.oopen.de
|
||||||
|
ga-gh-gw.oopen.de
|
||||||
gw-campus.oopen.de
|
gw-campus.oopen.de
|
||||||
|
|
||||||
ga-st-lxc1.ga.netz
|
ga-st-lxc1.ga.netz
|
||||||
@@ -1348,6 +1350,7 @@ o17.oopen.de
|
|||||||
at-10-neu.ak.netz
|
at-10-neu.ak.netz
|
||||||
bbb-server.b3-bornim.netz
|
bbb-server.b3-bornim.netz
|
||||||
file-ah.kanzlei-kiel.netz
|
file-ah.kanzlei-kiel.netz
|
||||||
|
file-ah-neu.kanzlei-kiel.netz
|
||||||
file-ebs.ebs.netz
|
file-ebs.ebs.netz
|
||||||
file-fm.fm.netz
|
file-fm.fm.netz
|
||||||
file-fhxb.fhxb.netz
|
file-fhxb.fhxb.netz
|
||||||
@@ -1364,6 +1367,7 @@ zapata.opp.netz
|
|||||||
file-blkr.blkr.netz
|
file-blkr.blkr.netz
|
||||||
file-dissens.dissens.netz
|
file-dissens.dissens.netz
|
||||||
file-ah.kanzlei-kiel.netz
|
file-ah.kanzlei-kiel.netz
|
||||||
|
file-ah-neu.kanzlei-kiel.netz
|
||||||
file-ebs.ebs.netz
|
file-ebs.ebs.netz
|
||||||
file-fm.fm.netz
|
file-fm.fm.netz
|
||||||
file-fhxb.fhxb.netz
|
file-fhxb.fhxb.netz
|
||||||
@@ -1471,6 +1475,7 @@ lxc-host-kb.anw-kb.netz
|
|||||||
|
|
||||||
bbb-server.b3-bornim.netz
|
bbb-server.b3-bornim.netz
|
||||||
file-ah.kanzlei-kiel.netz
|
file-ah.kanzlei-kiel.netz
|
||||||
|
file-ah-neu.kanzlei-kiel.netz
|
||||||
file-km.anw-km.netz
|
file-km.anw-km.netz
|
||||||
file-kb.anw-kb.netz
|
file-kb.anw-kb.netz
|
||||||
file-blkr.blkr.netz
|
file-blkr.blkr.netz
|
||||||
@@ -1625,6 +1630,7 @@ test-nd.oopen.de
|
|||||||
at-10-neu.ak.netz
|
at-10-neu.ak.netz
|
||||||
bbb-server.b3-bornim.netz
|
bbb-server.b3-bornim.netz
|
||||||
file-ah.kanzlei-kiel.netz
|
file-ah.kanzlei-kiel.netz
|
||||||
|
file-ah-neu.kanzlei-kiel.netz
|
||||||
file-ebs.ebs.netz
|
file-ebs.ebs.netz
|
||||||
file-fm.fm.netz
|
file-fm.fm.netz
|
||||||
file-fhxb.fhxb.netz
|
file-fhxb.fhxb.netz
|
||||||
@@ -1858,6 +1864,7 @@ lxc-host-kb.anw-kb.netz
|
|||||||
at-10-neu.ak.netz
|
at-10-neu.ak.netz
|
||||||
bbb-server.b3-bornim.netz
|
bbb-server.b3-bornim.netz
|
||||||
file-ah.kanzlei-kiel.netz
|
file-ah.kanzlei-kiel.netz
|
||||||
|
file-ah-neu.kanzlei-kiel.netz
|
||||||
file-ebs.ebs.netz
|
file-ebs.ebs.netz
|
||||||
file-fm.fm.netz
|
file-fm.fm.netz
|
||||||
file-fhxb.fhxb.netz
|
file-fhxb.fhxb.netz
|
||||||
@@ -1888,7 +1895,6 @@ gw-elster.oopen.de
|
|||||||
gw-blkr.oopen.de
|
gw-blkr.oopen.de
|
||||||
gw-ak.oopen.de
|
gw-ak.oopen.de
|
||||||
gw-akb.oopen.de
|
gw-akb.oopen.de
|
||||||
172.16.82.2
|
|
||||||
gw-dissens.oopen.de
|
gw-dissens.oopen.de
|
||||||
gw-ckubu.local.netz
|
gw-ckubu.local.netz
|
||||||
gw-flr.oopen.de
|
gw-flr.oopen.de
|
||||||
@@ -1910,6 +1916,7 @@ ga-st-gw.ga.netz
|
|||||||
ga-st-gw-neu.ga.netz
|
ga-st-gw-neu.ga.netz
|
||||||
ga-al-gw.oopen.de
|
ga-al-gw.oopen.de
|
||||||
ga-nh-gw.oopen.de
|
ga-nh-gw.oopen.de
|
||||||
|
ga-gh-gw.oopen.de
|
||||||
gw-campus.oopen.de
|
gw-campus.oopen.de
|
||||||
|
|
||||||
|
|
||||||
@@ -1990,6 +1997,7 @@ ga-al-kvm2.ga.netz
|
|||||||
ga-al-kvm3.ga.netz
|
ga-al-kvm3.ga.netz
|
||||||
ga-al-relay.ga.netz
|
ga-al-relay.ga.netz
|
||||||
ga-nh-gw.oopen.de.yml
|
ga-nh-gw.oopen.de.yml
|
||||||
|
ga-gh-gw.oopen.de
|
||||||
gw-campus.oopen.de
|
gw-campus.oopen.de
|
||||||
ga-st-lxc1.ga.netz
|
ga-st-lxc1.ga.netz
|
||||||
ga-st-mail.ga.netz
|
ga-st-mail.ga.netz
|
||||||
|
|||||||
68
roles/ansible_dependencies-trixie/tasks/main.yml
Normal file
68
roles/ansible_dependencies-trixie/tasks/main.yml
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Ensure python3 and python3-apt are present (bootstrap)
|
||||||
|
ansible.builtin.raw: |
|
||||||
|
test -x /usr/bin/python3 && dpkg -s python3-apt >/dev/null 2>&1 \
|
||||||
|
|| (apt-get update -y && apt-get install -y python3 python3-apt)
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
|
# Ab dem Zeitpunkt in dem Python auf dem Zielsystem vorhanden ist,
|
||||||
|
# kann Ansible wieder normale Module (wie apt, file, service, copy, usw.) benutzen.
|
||||||
|
#
|
||||||
|
# Aber:
|
||||||
|
# Da gather_facts: false gesetzt war, hat Ansible bis hierher keine Systeminformationen (Facts) wie:
|
||||||
|
#
|
||||||
|
# ansible_distribution
|
||||||
|
#
|
||||||
|
# ansible_fqdn
|
||||||
|
#
|
||||||
|
# ansible_memtotal_mb
|
||||||
|
#
|
||||||
|
# ansible_interfaces
|
||||||
|
#
|
||||||
|
# etc.
|
||||||
|
# eingesammelt.
|
||||||
|
#
|
||||||
|
# Rufe das 'setup'-Modul manuell auf mit:
|
||||||
|
#
|
||||||
|
# - name: Enable facts now that Python exists
|
||||||
|
# ansible.builtin.setup:
|
||||||
|
#
|
||||||
|
# Damit holt Ansible nachträglich die Facts, jetzt, wo Python verfügbar ist.
|
||||||
|
#
|
||||||
|
- name: Enable facts now that Python exists
|
||||||
|
ansible.builtin.setup:
|
||||||
|
|
||||||
|
|
||||||
|
- name: Ensure aptitude is present (optional)
|
||||||
|
ansible.builtin.raw: |
|
||||||
|
test -x /usr/bin/aptitude || (apt-get update -y && apt-get install -y aptitude)
|
||||||
|
changed_when: false
|
||||||
|
when: (aptitude_needed | default(false)) | bool
|
||||||
|
|
||||||
|
- name: Update apt cache
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
|
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
|
||||||
|
|
||||||
|
- name: Fix half-configured packages (dpkg --configure -a)
|
||||||
|
ansible.builtin.command: dpkg --configure -a
|
||||||
|
register: dpkg_config
|
||||||
|
changed_when: (dpkg_config.stdout | default('')) | length > 0
|
||||||
|
when: (apt_dpkg_configure | default(true)) | bool
|
||||||
|
tags: [ansible-dependencies]
|
||||||
|
|
||||||
|
- name: Upgrade packages
|
||||||
|
ansible.builtin.apt:
|
||||||
|
upgrade: "{{ apt_upgrade_type | default('safe') }}"
|
||||||
|
update_cache: true
|
||||||
|
dpkg_options: "{{ (apt_upgrade_dpkg_options | default(['force-confdef','force-confold'])) | join(',') }}"
|
||||||
|
when: (apt_upgrade | default(false)) | bool
|
||||||
|
tags: [ansible-dependencies]
|
||||||
|
|
||||||
|
- name: Install Ansible dependencies
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: "{{ apt_ansible_dependencies_trixie | default(['python3','python3-apt']) }}"
|
||||||
|
state: "{{ apt_install_state | default('present') }}"
|
||||||
|
tags: [ansible-dependencies]
|
||||||
68
roles/ansible_dependencies-trixie/tasks/main.yml.01
Normal file
68
roles/ansible_dependencies-trixie/tasks/main.yml.01
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Ensure python3 and python3-apt are present (bootstrap)
|
||||||
|
ansible.builtin.raw: |
|
||||||
|
test -x /usr/bin/python3 && dpkg -s python3-apt >/dev/null 2>&1 \
|
||||||
|
|| (apt-get update -y && apt-get install -y python3 python3-apt)
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
|
# Ab dem Zeitpunkt in dem Python auf dem Zielsystem vorhanden ist,
|
||||||
|
# kann Ansible wieder normale Module (wie apt, file, service, copy, usw.) benutzen.
|
||||||
|
#
|
||||||
|
# Aber:
|
||||||
|
# Da gather_facts: false gesetzt war, hat Ansible bis hierher keine Systeminformationen (Facts) wie:
|
||||||
|
#
|
||||||
|
# ansible_distribution
|
||||||
|
#
|
||||||
|
# ansible_fqdn
|
||||||
|
#
|
||||||
|
# ansible_memtotal_mb
|
||||||
|
#
|
||||||
|
# ansible_interfaces
|
||||||
|
#
|
||||||
|
# etc.
|
||||||
|
# eingesammelt.
|
||||||
|
#
|
||||||
|
# Rufe das 'setup'-Modul manuell auf mit:
|
||||||
|
#
|
||||||
|
# - name: Enable facts now that Python exists
|
||||||
|
# ansible.builtin.setup:
|
||||||
|
#
|
||||||
|
# Damit holt Ansible nachträglich die Facts, jetzt, wo Python verfügbar ist.
|
||||||
|
#
|
||||||
|
- name: Enable facts now that Python exists
|
||||||
|
ansible.builtin.setup:
|
||||||
|
|
||||||
|
|
||||||
|
- name: Ensure aptitude is present (optional)
|
||||||
|
ansible.builtin.raw: |
|
||||||
|
test -x /usr/bin/aptitude || (apt-get update -y && apt-get install -y aptitude)
|
||||||
|
changed_when: false
|
||||||
|
when: (aptitude_needed | default(false)) | bool
|
||||||
|
|
||||||
|
- name: Update apt cache
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
|
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
|
||||||
|
|
||||||
|
- name: Fix half-configured packages (dpkg --configure -a)
|
||||||
|
ansible.builtin.command: dpkg --configure -a
|
||||||
|
register: dpkg_config
|
||||||
|
changed_when: (dpkg_config.stdout | default('')) | length > 0
|
||||||
|
when: (apt_dpkg_configure | default(true)) | bool
|
||||||
|
tags: [ansible-dependencies]
|
||||||
|
|
||||||
|
- name: Upgrade packages
|
||||||
|
ansible.builtin.apt:
|
||||||
|
upgrade: "{{ apt_upgrade_type | default('safe') }}"
|
||||||
|
update_cache: true
|
||||||
|
dpkg_options: "{{ (apt_upgrade_dpkg_options | default(['force-confdef','force-confold'])) | join(',') }}"
|
||||||
|
when: (apt_upgrade | default(false)) | bool
|
||||||
|
tags: [ansible-dependencies]
|
||||||
|
|
||||||
|
- name: Install Ansible dependencies
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: "{{ apt_ansible_dependencies_trixie | default(['python3','python3-apt']) }}"
|
||||||
|
state: "{{ apt_install_state | default('present') }}"
|
||||||
|
tags: [ansible-dependencies]
|
||||||
72
roles/ansible_dependencies-trixie/tasks/main.yml.02
Normal file
72
roles/ansible_dependencies-trixie/tasks/main.yml.02
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# --- Nur fürs Bootstrap, damit Python für Ansible verfügbar ist ---
|
||||||
|
- name: Ensure python3 and python3-apt are present (bootstrap)
|
||||||
|
ansible.builtin.raw: |
|
||||||
|
test -x /usr/bin/python3 || (apt-get -y update && apt-get install -y python3)
|
||||||
|
test -x /usr/bin/python3 && (apt-get -y update && apt-get install -y python3-apt)
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
|
# Ab dem Zeitpunkt in dem Python auf dem Zielsystem vorhanden ist,
|
||||||
|
# kann Ansible wieder normale Module (wie apt, file, service, copy, usw.) benutzen.
|
||||||
|
#
|
||||||
|
# Aber:
|
||||||
|
# Da gather_facts: false gesetzt war, hat Ansible bis hierher keine Systeminformationen (Facts) wie:
|
||||||
|
#
|
||||||
|
# ansible_distribution
|
||||||
|
#
|
||||||
|
# ansible_fqdn
|
||||||
|
#
|
||||||
|
# ansible_memtotal_mb
|
||||||
|
#
|
||||||
|
# ansible_interfaces
|
||||||
|
#
|
||||||
|
# etc.
|
||||||
|
# eingesammelt.
|
||||||
|
#
|
||||||
|
# Rufe das 'setup'-Modul manuell auf mit:
|
||||||
|
#
|
||||||
|
# - name: Enable facts now that Python exists
|
||||||
|
# ansible.builtin.setup:
|
||||||
|
#
|
||||||
|
# Damit holt Ansible nachträglich die Facts, jetzt, wo Python verfügbar ist.
|
||||||
|
#
|
||||||
|
- name: Enable facts now that Python exists
|
||||||
|
ansible.builtin.setup:
|
||||||
|
|
||||||
|
# --- Ab hier normale Module verwenden ---
|
||||||
|
- name: Update APT cache
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
|
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
|
||||||
|
tags: [ansible-dependencies]
|
||||||
|
|
||||||
|
- name: Ensure aptitude is present
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: aptitude
|
||||||
|
state: present
|
||||||
|
tags: [ansible-dependencies]
|
||||||
|
|
||||||
|
- name: dpkg --configure -a
|
||||||
|
ansible.builtin.command: dpkg --configure -a
|
||||||
|
register: dpkg_out
|
||||||
|
# "changed" nur, wenn es wirklich etwas ausgibt/konfiguriert
|
||||||
|
changed_when: dpkg_out.stdout is defined and dpkg_out.stdout | length > 0
|
||||||
|
when: apt_dpkg_configure | bool
|
||||||
|
tags: [ansible-dependencies]
|
||||||
|
|
||||||
|
- name: apt upgrade
|
||||||
|
ansible.builtin.apt:
|
||||||
|
upgrade: "{{ apt_upgrade_type }}"
|
||||||
|
update_cache: true
|
||||||
|
dpkg_options: "{{ apt_upgrade_dpkg_options | join(',') }}"
|
||||||
|
when: apt_upgrade | bool
|
||||||
|
tags: [ansible-dependencies]
|
||||||
|
|
||||||
|
- name: apt install ansible dependencies
|
||||||
|
ansible.builtin.apt:
|
||||||
|
name: "{{ apt_ansible_dependencies_trixie }}"
|
||||||
|
state: "{{ apt_install_state }}"
|
||||||
|
tags: [ansible-dependencies]
|
||||||
|
|
||||||
@@ -8,7 +8,10 @@
|
|||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
register: apt_config_updated
|
register: apt_config_updated
|
||||||
when: apt_manage_sources_list|bool
|
when:
|
||||||
|
- apt_manage_sources_list|bool
|
||||||
|
- ansible_facts['distribution'] == 'Debian'
|
||||||
|
- (ansible_facts['distribution_major_version'] | int) < 13
|
||||||
tags:
|
tags:
|
||||||
- apt-configuration
|
- apt-configuration
|
||||||
|
|
||||||
@@ -27,13 +30,11 @@
|
|||||||
- apt-webserver-pkgs
|
- apt-webserver-pkgs
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) dpkg --configure
|
- name: (apt.yml) Configure any half-installed packages 'dpkg --configure -a'
|
||||||
command: >
|
ansible.builtin.command: dpkg --configure -a
|
||||||
dpkg --configure -a
|
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
changed_when: _dpkg_configure.stdout_lines | length
|
|
||||||
register: _dpkg_configure
|
register: _dpkg_configure
|
||||||
|
changed_when: (_dpkg_configure.stdout | default('')) | length > 0
|
||||||
|
failed_when: _dpkg_configure.rc != 0
|
||||||
when: apt_dpkg_configure|bool
|
when: apt_dpkg_configure|bool
|
||||||
tags:
|
tags:
|
||||||
- apt-dpkg-configure
|
- apt-dpkg-configure
|
||||||
@@ -105,6 +106,18 @@
|
|||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
|
|
||||||
|
|
||||||
|
- name: (apt.yml) Initial install debian packages (trixie)
|
||||||
|
apt:
|
||||||
|
name: "{{ apt_initial_install_trixie }}"
|
||||||
|
state: "{{ apt_install_state }}"
|
||||||
|
when:
|
||||||
|
- apt_initial_install_trixie is defined and apt_initial_install_trixie|length > 0
|
||||||
|
- ansible_facts['distribution'] == "Debian"
|
||||||
|
- ansible_facts['distribution_major_version'] == "13"
|
||||||
|
tags:
|
||||||
|
- apt-initial-install
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Initial install ubuntu packages (bionic)
|
- name: (apt.yml) Initial install ubuntu packages (bionic)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ apt_initial_install_bionic }}"
|
name: "{{ apt_initial_install_bionic }}"
|
||||||
@@ -164,14 +177,14 @@
|
|||||||
- apt-microcode
|
- apt-microcode
|
||||||
|
|
||||||
|
|
||||||
- name: (apt.yml) Install CPU microcode (debian buster/bullseye/bookworm)
|
- name: (apt.yml) Install CPU microcode (debian buster/bullseye/bookworm/trixie)
|
||||||
apt:
|
apt:
|
||||||
name: "{{ microcode_package }}"
|
name: "{{ microcode_package }}"
|
||||||
state: present
|
state: present
|
||||||
default_release: "{{ ansible_distribution_release }}"
|
default_release: "{{ ansible_distribution_release }}"
|
||||||
when:
|
when:
|
||||||
- ansible_facts['distribution'] == "Debian"
|
- ansible_facts['distribution'] == "Debian"
|
||||||
- ansible_facts['distribution_major_version'] == "10" or ansible_facts['distribution_major_version'] == "11" or ansible_facts['distribution_major_version'] == "12"
|
- ansible_facts['distribution_major_version'] == "10" or ansible_facts['distribution_major_version'] == "11" or ansible_facts['distribution_major_version'] == "12" or ansible_facts['distribution_major_version'] == "13"
|
||||||
- ansible_facts['processor']|string is search("Intel")
|
- ansible_facts['processor']|string is search("Intel")
|
||||||
tags:
|
tags:
|
||||||
- apt-initial-install
|
- apt-initial-install
|
||||||
@@ -318,11 +331,23 @@
|
|||||||
- apt-compiler-pkgs
|
- apt-compiler-pkgs
|
||||||
- apt-webserver-pkgs
|
- apt-webserver-pkgs
|
||||||
|
|
||||||
- name: (apt.yml) clean
|
#- name: (apt.yml) clean
|
||||||
command: apt-get -y clean
|
# command: apt-get -y clean
|
||||||
args:
|
# args:
|
||||||
warn: false
|
# warn: false
|
||||||
changed_when: false
|
# changed_when: false
|
||||||
|
# when: apt_clean|bool
|
||||||
|
# tags:
|
||||||
|
# - apt-clean
|
||||||
|
# - apt-initial-install
|
||||||
|
# - apt-microcode
|
||||||
|
# - apt-compiler-pkgs
|
||||||
|
# - apt-mysql-server-pkgs
|
||||||
|
# - apt-webserver-pkgs
|
||||||
|
|
||||||
|
- name: (apt.yml) autoclean cache
|
||||||
|
ansible.builtin.apt:
|
||||||
|
autoclean: yes
|
||||||
when: apt_clean | bool
|
when: apt_clean | bool
|
||||||
tags:
|
tags:
|
||||||
- apt-clean
|
- apt-clean
|
||||||
|
|||||||
@@ -15,14 +15,11 @@
|
|||||||
tags:
|
tags:
|
||||||
- apt-caching-nameserver
|
- apt-caching-nameserver
|
||||||
|
|
||||||
|
- name: (caching-nameserver.yml) Configure any half-installed packages 'dpkg --configure -a'
|
||||||
- name: (caching-nameserver.yml) dpkg --configure
|
ansible.builtin.command: dpkg --configure -a
|
||||||
command: >
|
|
||||||
dpkg --configure -a
|
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
changed_when: _dpkg_configure.stdout_lines | length
|
|
||||||
register: _dpkg_configure
|
register: _dpkg_configure
|
||||||
|
changed_when: (_dpkg_configure.stdout | default('')) | length > 0
|
||||||
|
failed_when: _dpkg_configure.rc != 0
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == "Debian"
|
- ansible_distribution == "Debian"
|
||||||
- apt_update|bool
|
- apt_update|bool
|
||||||
|
|||||||
@@ -32,8 +32,7 @@
|
|||||||
git:
|
git:
|
||||||
repo: "{{ git_firewall_repository.repo }}"
|
repo: "{{ git_firewall_repository.repo }}"
|
||||||
dest: "{{ git_firewall_repository.dest }}"
|
dest: "{{ git_firewall_repository.dest }}"
|
||||||
#when: git_firewall_repository is defined and git_firewall_repository > 0
|
when: git_firewall_repository is defined and git_firewall_repository | length > 0
|
||||||
when: git_firewall_repository|bool
|
|
||||||
tags:
|
tags:
|
||||||
- git-firewall-repository
|
- git-firewall-repository
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,16 @@
|
|||||||
tags: yum
|
tags: yum
|
||||||
|
|
||||||
|
|
||||||
|
# tags supportetd inside caching-nameserver.yml
|
||||||
|
#
|
||||||
|
# apt-caching-nameserver
|
||||||
|
# yum-caching-nameserver
|
||||||
|
#
|
||||||
|
- import_tasks: caching-nameserver.yml
|
||||||
|
when: groups['caching_nameserver']|string is search(inventory_hostname)
|
||||||
|
tags: caching-nameserver
|
||||||
|
|
||||||
|
|
||||||
# tags supported inside systemd-resolved.yml
|
# tags supported inside systemd-resolved.yml
|
||||||
#
|
#
|
||||||
# systemd-resolved
|
# systemd-resolved
|
||||||
@@ -270,16 +280,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- redis-server
|
- redis-server
|
||||||
|
|
||||||
|
|
||||||
# tags supportetd inside caching-nameserver.yml
|
|
||||||
#
|
|
||||||
# apt-caching-nameserver
|
|
||||||
# yum-caching-nameserver
|
|
||||||
#
|
|
||||||
- import_tasks: caching-nameserver.yml
|
|
||||||
when: groups['caching_nameserver']|string is search(inventory_hostname)
|
|
||||||
tags: caching-nameserver
|
|
||||||
|
|
||||||
- import_tasks: mysql.yml
|
- import_tasks: mysql.yml
|
||||||
when: groups['mysql_server']|string is search(inventory_hostname)
|
when: groups['mysql_server']|string is search(inventory_hostname)
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
@@ -15,17 +15,14 @@
|
|||||||
tags:
|
tags:
|
||||||
- redis-server
|
- redis-server
|
||||||
|
|
||||||
|
- name: (redis-server.yml) Configure any half-installed packages 'dpkg --configure -a'
|
||||||
- name: (redis-server.yml) dpkg --configure
|
ansible.builtin.command: dpkg --configure -a
|
||||||
command: >
|
|
||||||
dpkg --configure -a
|
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
changed_when: _dpkg_configure.stdout_lines | length
|
|
||||||
register: _dpkg_configure
|
register: _dpkg_configure
|
||||||
|
changed_when: (_dpkg_configure.stdout | default('')) | length > 0
|
||||||
|
failed_when: _dpkg_configure.rc != 0
|
||||||
when:
|
when:
|
||||||
- ansible_facts['distribution'] == "Debian"
|
- ansible_facts['distribution'] == "Debian"
|
||||||
- apt_update|bool
|
- apt_dpkg_configure|bool
|
||||||
tags:
|
tags:
|
||||||
- redis-server
|
- redis-server
|
||||||
|
|
||||||
|
|||||||
@@ -92,14 +92,13 @@
|
|||||||
# ---
|
# ---
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Check if file '/root/bin/samba/clean_samba_trash.sh' exists
|
- name: (samba-config-server.yml) Check if file '/root/bin/samba/clean_samba_trash.sh' exists
|
||||||
stat:
|
ansible.builtin.stat:
|
||||||
path: /root/bin/samba/clean_samba_trash.sh
|
path: /root/bin/samba/clean_samba_trash.sh
|
||||||
register: clean_samba_trash_exists
|
register: clean_samba_trash_exists
|
||||||
when:
|
when:
|
||||||
- "groups['samba_server']|string is search(inventory_hostname)"
|
- inventory_hostname in groups['samba_server']
|
||||||
tags:
|
tags: [samba-server, samba-cron]
|
||||||
- samba-server
|
|
||||||
- samba-cron
|
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Adjust configuration for script 'clean_samba_trash.sh'
|
- name: (samba-config-server.yml) Adjust configuration for script 'clean_samba_trash.sh'
|
||||||
template:
|
template:
|
||||||
@@ -114,36 +113,33 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Check if cleaning up trash dirs is configured
|
- name: (samba-config-server.yml) Check if cleaning up trash dirs is configured
|
||||||
lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /root/bin/samba/conf/clean_samba_trash.conf
|
path: /root/bin/samba/conf/clean_samba_trash.conf
|
||||||
regexp: "^trash_dirs=*"
|
regexp: '^trash_dirs=*'
|
||||||
state: absent
|
state: absent
|
||||||
check_mode: yes
|
check_mode: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: clean_samba_trash_dirs
|
register: clean_samba_trash_dirs
|
||||||
when:
|
when:
|
||||||
- "groups['samba_server']|string is search(inventory_hostname)"
|
- inventory_hostname in groups['samba_server']
|
||||||
tags:
|
tags: [samba-server, samba-cron]
|
||||||
- samba-server
|
|
||||||
- samba-cron
|
|
||||||
|
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Creates a cron job for cleaning up samba trash dirs
|
- name: (samba-config-server.yml) Creates a cron job for cleaning up samba trash dirs
|
||||||
cron:
|
ansible.builtin.cron:
|
||||||
name: '{{ samba_cronjob_trash_dirs.name }}'
|
name: "{{ samba_cronjob_trash_dirs.name }}"
|
||||||
minute: '{{ samba_cronjob_trash_dirs.minute }}'
|
minute: "{{ samba_cronjob_trash_dirs.minute }}"
|
||||||
hour: "{{ samba_cronjob_trash_dirs.hour | default('*') }}"
|
hour: "{{ samba_cronjob_trash_dirs.hour | default('*') }}"
|
||||||
day: "{{ samba_cronjob_trash_dirs.hour.day | default('*') }}"
|
day: "{{ samba_cronjob_trash_dirs.day | default('*') }}"
|
||||||
month: "{{ samba_cronjob_trash_dirs.hour.month| default('*') }}"
|
month: "{{ samba_cronjob_trash_dirs.month | default('*') }}"
|
||||||
weekday: "{{ samba_cronjob_trash_dirs.hour.weekday| default('*') }}"
|
weekday: "{{ samba_cronjob_trash_dirs.weekday | default('*') }}"
|
||||||
user: "{{ samba_cronjob_trash_dirs.user | default('root') }}"
|
user: "{{ samba_cronjob_trash_dirs.user | default('root') }}"
|
||||||
job: "{{ samba_cronjob_trash_dirs.job }}"
|
job: "{{ samba_cronjob_trash_dirs.job }}"
|
||||||
when:
|
when:
|
||||||
- "groups['samba_server']|string is search(inventory_hostname)"
|
- inventory_hostname in groups['samba_server']
|
||||||
- clean_samba_trash_exists.stat.exists|bool and clean_samba_trash_dirs.found
|
- clean_samba_trash_exists.stat.exists | bool
|
||||||
tags:
|
- (clean_samba_trash_dirs.found | int) > 0
|
||||||
- samba-server
|
tags: [samba-server, samba-cron]
|
||||||
- samba-cron
|
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
@@ -151,31 +147,28 @@
|
|||||||
# ---
|
# ---
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Check if file '/root/bin/samba/set_permissions_samba_shares.sh' exists
|
- name: (samba-config-server.yml) Check if file '/root/bin/samba/set_permissions_samba_shares.sh' exists
|
||||||
stat:
|
ansible.builtin.stat:
|
||||||
path: /root/bin/samba/set_permissions_samba_shares.sh
|
path: /root/bin/samba/set_permissions_samba_shares.sh
|
||||||
register: set_permissions_on_samba_shares_exists
|
register: set_permissions_on_samba_shares_exists
|
||||||
when:
|
when:
|
||||||
- "groups['samba_server']|string is search(inventory_hostname)"
|
- inventory_hostname in groups['samba_server']
|
||||||
tags:
|
tags: [samba-server, samba-cron]
|
||||||
- samba-server
|
|
||||||
- samba-cron
|
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Adjust configuration for script 'set_permissions_samba_shares.sh'
|
- name: (samba-config-server.yml) Adjust configuration for script 'set_permissions_samba_shares.sh'
|
||||||
template:
|
ansible.builtin.template:
|
||||||
dest: /root/bin/samba/conf/set_permissions_samba_shares.conf
|
dest: /root/bin/samba/conf/set_permissions_samba_shares.conf
|
||||||
src: root/bin/samba/conf/set_permissions_samba_shares.conf.j2
|
src: root/bin/samba/conf/set_permissions_samba_shares.conf.j2
|
||||||
when:
|
when:
|
||||||
- "groups['samba_server']|string is search(inventory_hostname)"
|
- inventory_hostname in groups['samba_server']
|
||||||
- set_permissions_on_samba_shares_exists.stat.exists | bool
|
- set_permissions_on_samba_shares_exists.stat.exists | bool
|
||||||
tags:
|
tags: [samba-server, samba-cron]
|
||||||
- samba-server
|
|
||||||
- samba-cron
|
|
||||||
|
|
||||||
|
|
||||||
- name: (samba-config-server.yml) Creates a cron job for cleaning up samba trash dirs
|
- name: (samba-config-server.yml) Creates a cron job for setting permissions to samba dirs
|
||||||
cron:
|
ansible.builtin.cron:
|
||||||
name: '{{ samba_cronjob_permissions.name }}'
|
name: "{{ samba_cronjob_permissions.name }}"
|
||||||
minute: '{{ samba_cronjob_permissions.minute }}'
|
minute: "{{ samba_cronjob_permissions.minute }}"
|
||||||
hour: "{{ samba_cronjob_permissions.hour | default('*') }}"
|
hour: "{{ samba_cronjob_permissions.hour | default('*') }}"
|
||||||
day: "{{ samba_cronjob_permissions.day | default('*') }}"
|
day: "{{ samba_cronjob_permissions.day | default('*') }}"
|
||||||
month: "{{ samba_cronjob_permissions.month | default('*') }}"
|
month: "{{ samba_cronjob_permissions.month | default('*') }}"
|
||||||
@@ -183,9 +176,8 @@
|
|||||||
user: "{{ samba_cronjob_permissions.user | default('root') }}"
|
user: "{{ samba_cronjob_permissions.user | default('root') }}"
|
||||||
job: "{{ samba_cronjob_permissions.job }}"
|
job: "{{ samba_cronjob_permissions.job }}"
|
||||||
when:
|
when:
|
||||||
- "groups['samba_server']|string is search(inventory_hostname)"
|
- inventory_hostname in groups['samba_server']
|
||||||
- clean_samba_trash_dirs.found
|
- (clean_samba_trash_dirs.found | int) > 0 # << int -> bool
|
||||||
tags:
|
tags: [samba-server, samba-cron]
|
||||||
- samba-server
|
|
||||||
- samba-cron
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
local_action: stat path={{ inventory_dir }}/files/homedirs/root
|
local_action: stat path={{ inventory_dir }}/files/homedirs/root
|
||||||
register: local_template_dir_root
|
register: local_template_dir_root
|
||||||
|
|
||||||
|
|
||||||
# --
|
# --
|
||||||
# Copy .bashrc
|
# Copy .bashrc
|
||||||
# ---
|
# ---
|
||||||
@@ -40,22 +41,40 @@
|
|||||||
tags:
|
tags:
|
||||||
- bash
|
- bash
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .bashrc if it exists
|
# 1. Prüfen, ob für jeden User ein lokales _bashrc existiert
|
||||||
copy:
|
- name: (users-systemfiles.yml) stat user _bashrc
|
||||||
src: "{{ lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_bashrc') }}"
|
ansible.builtin.stat:
|
||||||
dest: "~{{ item.item.name }}/.bashrc"
|
path: "{{ inventory_dir }}/files/homedirs/{{ item.name }}/_bashrc"
|
||||||
owner: "{{ item.item.name }}"
|
delegate_to: localhost
|
||||||
group: "{{ item.item.name }}"
|
become: false
|
||||||
mode: 0644
|
loop: "{{ default_user }}"
|
||||||
loop: "{{ local_template_dir_default_user.results }}"
|
register: bashrc_stats
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.item.name }}'
|
label: '{{ item.name }}'
|
||||||
|
|
||||||
|
# 2. Falls vorhanden, Datei kopieren
|
||||||
|
- name: (users-systemfiles.yml) copy .bashrc if it exists
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ inventory_dir }}/files/homedirs/{{ user.name }}/_bashrc"
|
||||||
|
dest: "~{{ user.name }}/.bashrc"
|
||||||
|
owner: "{{ user.name }}"
|
||||||
|
group: "{{ user.name }}"
|
||||||
|
mode: '0644'
|
||||||
|
loop: "{{ default_user | zip(bashrc_stats.results) | list }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ user.name }}"
|
||||||
when:
|
when:
|
||||||
- item.stat.exists
|
- stat_result.stat.exists
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_bashrc')
|
vars:
|
||||||
|
user: "{{ item.0 }}"
|
||||||
|
stat_result: "{{ item.1 }}"
|
||||||
tags:
|
tags:
|
||||||
- bash
|
- bash
|
||||||
|
|
||||||
|
# --
|
||||||
|
# -- root user
|
||||||
|
# --
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) Check if file '/root/.bashrc.ORIG' exists
|
- name: (users-systemfiles.yml) Check if file '/root/.bashrc.ORIG' exists
|
||||||
stat:
|
stat:
|
||||||
path: /root/.bashrc.ORIG
|
path: /root/.bashrc.ORIG
|
||||||
@@ -69,19 +88,28 @@
|
|||||||
tags:
|
tags:
|
||||||
- bash
|
- bash
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .bashrc for user root
|
# 1) Prüfen ob die _bashrc für root auf dem Control-Node existiert
|
||||||
copy:
|
- name: stat root _bashrc on control node
|
||||||
src: "{{ lookup('fileglob', inventory_dir + '/files/homedirs/root/_bashrc') }}"
|
ansible.builtin.stat:
|
||||||
dest: "/root/.bashrc"
|
path: "{{ inventory_dir }}/files/homedirs/root/_bashrc"
|
||||||
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
register: bashrc_root_stat
|
||||||
|
|
||||||
|
# 2) Wenn vorhanden, kopieren wir sie nach /root/.bashrc auf dem Zielhost
|
||||||
|
- name: copy root .bashrc if it exists
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ inventory_dir }}/files/homedirs/root/_bashrc"
|
||||||
|
dest: /root/.bashrc
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: '0644'
|
||||||
when:
|
become: true
|
||||||
- local_template_dir_root.stat.exists
|
when: bashrc_root_stat.stat.exists
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/root/_bashrc')
|
|
||||||
tags:
|
tags:
|
||||||
- bash
|
- bash
|
||||||
|
|
||||||
|
|
||||||
# --
|
# --
|
||||||
# Copy .profile (Debian System)
|
# Copy .profile (Debian System)
|
||||||
# ---
|
# ---
|
||||||
@@ -109,22 +137,40 @@
|
|||||||
tags:
|
tags:
|
||||||
- profile
|
- profile
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .profile if it exists
|
|
||||||
copy:
|
# 1. Prüfen, ob für jeden User ein lokales _profile existiert
|
||||||
src: "{{ lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_profile') }}"
|
- name: (users-systemfiles.yml) stat user _profile
|
||||||
dest: "~{{ item.item.name }}/.profile"
|
ansible.builtin.stat:
|
||||||
owner: "{{ item.item.name }}"
|
path: "{{ inventory_dir }}/files/homedirs/{{ item.name }}/_profile"
|
||||||
group: "{{ item.item.name }}"
|
delegate_to: localhost
|
||||||
mode: 0644
|
become: false
|
||||||
loop: "{{ local_template_dir_default_user.results }}"
|
loop: "{{ default_user }}"
|
||||||
|
register: profile_stats
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.item.name }}'
|
label: '{{ item.name }}'
|
||||||
|
|
||||||
|
# 2. Falls vorhanden, Datei kopieren
|
||||||
|
- name: (users-systemfiles.yml) copy .profile if it exists
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ inventory_dir }}/files/homedirs/{{ user.name }}/_profile"
|
||||||
|
dest: "~{{ user.name }}/.profile"
|
||||||
|
owner: "{{ user.name }}"
|
||||||
|
group: "{{ user.name }}"
|
||||||
|
mode: '0644'
|
||||||
|
loop: "{{ default_user | zip(profile_stats.results) | list }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ user.name }}"
|
||||||
when:
|
when:
|
||||||
- ansible_facts['distribution'] == "Debian"
|
- stat_result.stat.exists
|
||||||
- item.stat.exists
|
vars:
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_profile')
|
user: "{{ item.0 }}"
|
||||||
|
stat_result: "{{ item.1 }}"
|
||||||
tags:
|
tags:
|
||||||
- profile
|
- bash
|
||||||
|
|
||||||
|
# --
|
||||||
|
# -- root user
|
||||||
|
# --
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) Check if file '/root/.profile.ORIG' exists
|
- name: (users-systemfiles.yml) Check if file '/root/.profile.ORIG' exists
|
||||||
stat:
|
stat:
|
||||||
@@ -143,19 +189,27 @@
|
|||||||
tags:
|
tags:
|
||||||
- profile
|
- profile
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .profile for user root
|
|
||||||
copy:
|
# 1) Prüfen ob die _profile für root auf dem Control-Node existiert
|
||||||
src: "{{ lookup('fileglob', inventory_dir + '/files/homedirs/root/_profile') }}"
|
- name: stat root _profile on control node
|
||||||
dest: "/root/.profile"
|
ansible.builtin.stat:
|
||||||
|
path: "{{ inventory_dir }}/files/homedirs/root/_profile"
|
||||||
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
register: profile_root_stat
|
||||||
|
|
||||||
|
# 2) Wenn vorhanden, kopieren wir sie nach /root/.profile auf dem Zielhost
|
||||||
|
- name: copy root .profile if it exists
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ inventory_dir }}/files/homedirs/root/_profile"
|
||||||
|
dest: /root/.profile
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: '0644'
|
||||||
when:
|
become: true
|
||||||
- ansible_facts['distribution'] == "Debian"
|
when: profile_root_stat.stat.exists
|
||||||
- local_template_dir_root.stat.exists
|
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/root/_profile')
|
|
||||||
tags:
|
tags:
|
||||||
- profile
|
- bash
|
||||||
|
|
||||||
# --
|
# --
|
||||||
# Copy .bash_profile (CentOS/Fedora?/RedHat? System)
|
# Copy .bash_profile (CentOS/Fedora?/RedHat? System)
|
||||||
@@ -184,23 +238,43 @@
|
|||||||
tags:
|
tags:
|
||||||
- profile
|
- profile
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .bash_profile if it exists
|
|
||||||
copy:
|
# 1. Prüfen, ob für jeden User ein lokales _bash_profile existiert
|
||||||
src: "{{ lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_bash_profile') }}"
|
- name: (users-systemfiles.yml) stat user _bash_profile
|
||||||
dest: "~{{ item.item.name }}/.bash_profile"
|
ansible.builtin.stat:
|
||||||
owner: "{{ item.item.name }}"
|
path: "{{ inventory_dir }}/files/homedirs/{{ item.name }}/_bash_profile"
|
||||||
group: "{{ item.item.name }}"
|
delegate_to: localhost
|
||||||
mode: 0644
|
become: false
|
||||||
loop: "{{ local_template_dir_default_user.results }}"
|
loop: "{{ default_user }}"
|
||||||
|
register: bash_profile_stats
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.item.name }}'
|
label: '{{ item.name }}'
|
||||||
when:
|
when:
|
||||||
- ansible_facts['distribution'] == "CentOS"
|
- ansible_facts['distribution'] == "CentOS"
|
||||||
- item.stat.exists
|
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_bash_profile')
|
|
||||||
tags:
|
|
||||||
- profile
|
|
||||||
|
|
||||||
|
# 2. Falls vorhanden, Datei kopieren
|
||||||
|
- name: (users-systemfiles.yml) copy .bash_profile if it exists
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ inventory_dir }}/files/homedirs/{{ user.name }}/_bash_profile"
|
||||||
|
dest: "~{{ user.name }}/.bash_profile"
|
||||||
|
owner: "{{ user.name }}"
|
||||||
|
group: "{{ user.name }}"
|
||||||
|
mode: '0644'
|
||||||
|
loop: "{{ default_user | zip(bash_profile_stats.results) | list }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ user.name }}"
|
||||||
|
when:
|
||||||
|
- ansible_facts['distribution'] == "CentOS"
|
||||||
|
- stat_result.stat.exists
|
||||||
|
vars:
|
||||||
|
user: "{{ item.0 }}"
|
||||||
|
stat_result: "{{ item.1 }}"
|
||||||
|
tags:
|
||||||
|
- bash
|
||||||
|
|
||||||
|
# --
|
||||||
|
# -- root user
|
||||||
|
# --
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) Check if file '/root/.bash_profile.ORIG' exists
|
- name: (users-systemfiles.yml) Check if file '/root/.bash_profile.ORIG' exists
|
||||||
stat:
|
stat:
|
||||||
@@ -219,94 +293,171 @@
|
|||||||
tags:
|
tags:
|
||||||
- profile
|
- profile
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .bash_profile for user root
|
|
||||||
copy:
|
# 1) Prüfen ob die _bash_profile für root auf dem Control-Node existiert
|
||||||
src: "{{ lookup('fileglob', inventory_dir + '/files/homedirs/root/_bash_profile') }}"
|
- name: stat root _bash_profile on control node
|
||||||
dest: "/root/.bash_profile"
|
ansible.builtin.stat:
|
||||||
owner: root
|
path: "{{ inventory_dir }}/files/homedirs/root/_bash_profile"
|
||||||
group: root
|
delegate_to: localhost
|
||||||
mode: 0644
|
become: false
|
||||||
|
register: bash_profile_root_stat
|
||||||
when:
|
when:
|
||||||
- ansible_facts['distribution'] == "CentOS"
|
- ansible_facts['distribution'] == "CentOS"
|
||||||
- local_template_dir_root.stat.exists
|
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/root/_bash_profile')
|
# 2) Wenn vorhanden, kopieren wir sie nach /root/.bash_profile auf dem Zielhost
|
||||||
|
- name: copy root .bash_profile if it exists
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ inventory_dir }}/files/homedirs/root/_bash_profile"
|
||||||
|
dest: /root/.bash_profile
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: '0644'
|
||||||
|
become: true
|
||||||
|
when:
|
||||||
|
- ansible_facts['distribution'] == "CentOS"
|
||||||
|
- bash_profile_root_stat.stat.exists
|
||||||
tags:
|
tags:
|
||||||
- profile
|
- bash
|
||||||
|
|
||||||
|
|
||||||
# --
|
# --
|
||||||
# Copy .vimrc
|
# Copy .vimrc
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .vimrc if it exists
|
# 1. Prüfen, ob für jeden User ein lokales _vimrc existiert
|
||||||
copy:
|
- name: (users-systemfiles.yml) stat user _vimrc
|
||||||
src: "{{ lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_vimrc') }}"
|
ansible.builtin.stat:
|
||||||
dest: "~{{ item.item.name }}/.vimrc"
|
path: "{{ inventory_dir }}/files/homedirs/{{ item.name }}/_vimrc"
|
||||||
owner: "{{ item.item.name }}"
|
delegate_to: localhost
|
||||||
group: "{{ item.item.name }}"
|
become: false
|
||||||
mode: 0644
|
loop: "{{ default_user }}"
|
||||||
loop: "{{ local_template_dir_default_user.results }}"
|
register: vimrc_stats
|
||||||
loop_control:
|
|
||||||
label: '{{ item.item.name }}'
|
|
||||||
when:
|
|
||||||
- item.stat.exists
|
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_vimrc')
|
|
||||||
tags:
|
|
||||||
- vim
|
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) Check if .vim directory exists for default users
|
|
||||||
local_action: stat path={{ inventory_dir }}/files/homedirs/{{ item.name }}/.vim
|
|
||||||
with_items: "{{ default_user }}"
|
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.name }}'
|
label: '{{ item.name }}'
|
||||||
register: local_template_dir_dotvim_default_user
|
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .vim directory if it exists
|
# 2. Falls vorhanden, Datei kopieren
|
||||||
copy:
|
- name: (users-systemfiles.yml) copy .vimrc if it exists
|
||||||
src: "{{ inventory_dir + '/files/homedirs/' + item.item.name + '/.vim' }}"
|
ansible.builtin.copy:
|
||||||
dest: "~{{ item.item.name }}"
|
src: "{{ inventory_dir }}/files/homedirs/{{ user.name }}/_vimrc"
|
||||||
owner: "{{ item.item.name }}"
|
dest: "~{{ user.name }}/.vimrc"
|
||||||
group: "{{ item.item.name }}"
|
owner: "{{ user.name }}"
|
||||||
mode: 0644
|
group: "{{ user.name }}"
|
||||||
with_items: "{{ local_template_dir_dotvim_default_user.results }}"
|
mode: '0644'
|
||||||
|
loop: "{{ default_user | zip(vimrc_stats.results) | list }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.item.name }}'
|
label: "{{ user.name }}"
|
||||||
when:
|
when:
|
||||||
- item.stat.exists
|
- stat_result.stat.exists
|
||||||
|
vars:
|
||||||
|
user: "{{ item.0 }}"
|
||||||
|
stat_result: "{{ item.1 }}"
|
||||||
tags:
|
tags:
|
||||||
- vim
|
- bash
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .vimrc for user root
|
# 1) Lokal prüfen, ob ~/.vim existiert
|
||||||
copy:
|
- name: (users-systemfiles.yml) stat local .vim for each user
|
||||||
src: "{{ lookup('fileglob', inventory_dir + '/files/homedirs/root/_vimrc') }}"
|
ansible.builtin.stat:
|
||||||
dest: "/root/.vimrc"
|
path: "{{ inventory_dir }}/files/homedirs/{{ item.name }}/.vim"
|
||||||
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
loop: "{{ default_user }}"
|
||||||
|
register: dotvim_stats
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.name }}"
|
||||||
|
|
||||||
|
# 2) Wenn vorhanden, .vim-Verzeichnis ins Home des Users kopieren
|
||||||
|
- name: (users-systemfiles.yml) copy .vim directory if it exists
|
||||||
|
ansible.builtin.copy:
|
||||||
|
# Wichtig: KEINE verschachtelten {{ ... }} im String
|
||||||
|
src: "{{ inventory_dir }}/files/homedirs/{{ user.name }}/.vim"
|
||||||
|
dest: "~{{ user.name }}/"
|
||||||
|
mode: preserve # oder weglassen; 0644 wäre für Verzeichnisse falsch
|
||||||
|
become: true
|
||||||
|
loop: "{{ default_user | zip(dotvim_stats.results) | list }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ user.name }}"
|
||||||
|
when:
|
||||||
|
- stat_result.stat.exists | bool
|
||||||
|
vars:
|
||||||
|
user: "{{ item.0 }}"
|
||||||
|
stat_result: "{{ item.1 }}"
|
||||||
|
tags: [vim]
|
||||||
|
|
||||||
|
|
||||||
|
# 3) Ownership/Gruppe rekursiv korrigieren (falls gewünscht/erforderlich)
|
||||||
|
- name: (users-systemfiles.yml) ensure ownership on ~/.vim recursively
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "~{{ user.name }}/.vim"
|
||||||
|
owner: "{{ user.name }}"
|
||||||
|
group: "{{ user.name }}"
|
||||||
|
recurse: true
|
||||||
|
state: directory
|
||||||
|
become: true
|
||||||
|
loop: "{{ default_user | zip(dotvim_stats.results) | list }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ user.name }}"
|
||||||
|
when:
|
||||||
|
- stat_result.stat.exists | bool
|
||||||
|
vars:
|
||||||
|
user: "{{ item.0 }}"
|
||||||
|
stat_result: "{{ item.1 }}"
|
||||||
|
tags: [vim]
|
||||||
|
|
||||||
|
# --
|
||||||
|
# -- root user
|
||||||
|
# --
|
||||||
|
|
||||||
|
# 1) Prüfen ob die _vimrc für root auf dem Control-Node existiert
|
||||||
|
- name: stat root _vimrc on control node
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ inventory_dir }}/files/homedirs/root/_vimrc"
|
||||||
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
register: vimrc_root_stat
|
||||||
|
|
||||||
|
# 2) Wenn vorhanden, kopieren wir sie nach /root/.vimrc auf dem Zielhost
|
||||||
|
- name: copy root .vimrc if it exists
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "{{ inventory_dir }}/files/homedirs/root/_vimrc"
|
||||||
|
dest: /root/.vimrc
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: '0644'
|
||||||
|
become: true
|
||||||
when:
|
when:
|
||||||
- local_template_dir_root.stat.exists
|
- vimrc_root_stat.stat.exists
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/root/_vimrc')
|
|
||||||
tags:
|
tags:
|
||||||
- vim
|
- bash
|
||||||
|
|
||||||
|
# 1) Lokal prüfen, ob ./files/homedirs/root/.vim existiert
|
||||||
|
- name: (users-systemfiles.yml) stat local .vim for root
|
||||||
|
ansible.builtin.stat:
|
||||||
|
path: "{{ inventory_dir }}/files/homedirs/root/.vim"
|
||||||
|
delegate_to: localhost
|
||||||
|
become: false
|
||||||
|
register: root_dotvim_stat
|
||||||
|
tags: [vim]
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) Check if local template directory .vim exists for user root
|
# 2) Wenn vorhanden, nach /root/ kopieren
|
||||||
local_action: stat path={{ inventory_dir }}/files/homedirs/root/.vim
|
- name: (users-systemfiles.yml) copy root .vim directory if it exists
|
||||||
register: local_template_dir_vim_root
|
ansible.builtin.copy:
|
||||||
with_items: 'root'
|
src: "{{ inventory_dir }}/files/homedirs/root/.vim"
|
||||||
loop_control:
|
dest: "/root/"
|
||||||
label: 'root'
|
mode: preserve # oder weglassen; nicht 0644 bei Verzeichnissen
|
||||||
|
become: true
|
||||||
|
when:
|
||||||
|
- root_dotvim_stat.stat.exists | bool
|
||||||
|
tags: [vim]
|
||||||
|
|
||||||
- name: (users-systemfiles.yml) copy .vim directory for user root if it exists
|
# 3) Ownership sicherstellen (rekursiv)
|
||||||
copy:
|
- name: (users-systemfiles.yml) ensure ownership on /root/.vim recursively
|
||||||
src: "{{ inventory_dir + '/files/homedirs/root/.vim' }}"
|
ansible.builtin.file:
|
||||||
dest: "/root"
|
path: "/root/.vim"
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
mode: 0644
|
recurse: true
|
||||||
with_items: "{{ local_template_dir_vim_root.results }}"
|
state: directory
|
||||||
loop_control:
|
become: true
|
||||||
label: 'root'
|
|
||||||
when:
|
when:
|
||||||
- item.stat.exists
|
- root_dotvim_stat.stat.exists | bool
|
||||||
tags:
|
tags: [vim]
|
||||||
- vim
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ _SASL_PASS=
|
|||||||
_RELAY_HOST=true
|
_RELAY_HOST=true
|
||||||
_SYMPA_LIST_SERVER=true
|
_SYMPA_LIST_SERVER=true
|
||||||
{% else %}
|
{% else %}
|
||||||
_RELAY_HOST="{{ is_relay_host | default('false') }}"
|
_RELAY_HOST={{ is_relay_host | default('false') }}
|
||||||
_SYMPA_LIST_SERVER=false
|
_SYMPA_LIST_SERVER=false
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
_INSTALL_DMARC_REPORT_SUPPORT={{ support_dmarc_reporting | default('false') }}
|
||||||
|
|||||||
@@ -141,52 +141,62 @@
|
|||||||
# Add additional SMTP ports OUT
|
# Add additional SMTP ports OUT
|
||||||
# ---
|
# ---
|
||||||
|
|
||||||
- name: Check if String 'smtpd_additional_outgoung_ports..' (IPv4) is present
|
- name: Check if String 'allow_ipmi_request_in..' (IPv4) is present
|
||||||
shell: grep -q -E "^#?smtpd_additional_outgoung_ports=" /etc/ipt-firewall/main_ipv4.conf
|
shell: grep -q -E "^#?allow_ipmi_request_in=" /etc/ipt-firewall/main_ipv4.conf
|
||||||
register: smtpd_additional_outgoung_ports_ipv4_present
|
register: allow_ipmi_request_in_ipv4_present
|
||||||
when: main_ipv4_exists.stat.exists
|
when: main_ipv4_exists.stat.exists
|
||||||
failed_when: "smtpd_additional_outgoung_ports_ipv4_present.rc > 1"
|
failed_when: "allow_ipmi_request_in_ipv4_present.rc > 1"
|
||||||
changed_when: "smtpd_additional_outgoung_ports_ipv4_present.rc > 0"
|
changed_when: "allow_ipmi_request_in_ipv4_present.rc > 0"
|
||||||
|
|
||||||
- name: Adjust file '/etc/ipt-firewall/main_ipv4.conf' (FreeIPA Service)
|
- name: Adjust file '/etc/ipt-firewall/main_ipv4.conf' (allow_ipmi_request_in)
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /etc/ipt-firewall/main_ipv4.conf
|
path: /etc/ipt-firewall/main_ipv4.conf
|
||||||
insertafter: '^#?\s*mail_user_ports'
|
insertafter: '^#?\s*ipmi_tcp_ports='
|
||||||
block: |
|
block: |
|
||||||
|
# - Allow Access to IPMI Interfaces from outside
|
||||||
# Additional Ports for outgoing smtp traffic
|
# -
|
||||||
#
|
# - Note:
|
||||||
# blank separated list of ports
|
# - In addition, ports
|
||||||
#
|
# -
|
||||||
smtpd_additional_outgoung_ports=""
|
# - TCP :443, 3520, 5900
|
||||||
marker: "# Marker set by modify-ipt-gateway.yml (FreeIPA Service)"
|
# - UDP: 623
|
||||||
|
# -
|
||||||
|
# - must be forwarded to the IP address of the IPMI network interface in the router (e.g., Fritzbox).
|
||||||
|
# -
|
||||||
|
allow_ipmi_request_in=false
|
||||||
|
marker: "# Marker set by modify-ipt-gateway.yml (allow_ipmi_request_in)"
|
||||||
when:
|
when:
|
||||||
- main_ipv4_exists.stat.exists
|
- main_ipv4_exists.stat.exists
|
||||||
- smtpd_additional_outgoung_ports_ipv4_present is changed
|
- allow_ipmi_request_in_ipv4_present is changed
|
||||||
|
|
||||||
|
|
||||||
- name: Check if String 'smtpd_additional_outgoung_ports..' (IPv6) is present
|
- name: Check if String 'allow_ipmi_request_in..' (IPv6) is present
|
||||||
shell: grep -q -E "^#?smtpd_additional_outgoung_ports=" /etc/ipt-firewall/main_ipv6.conf
|
shell: grep -q -E "^#?allow_ipmi_request_in=" /etc/ipt-firewall/main_ipv6.conf
|
||||||
register: smtpd_additional_outgoung_ports_ipv6_present
|
register: allow_ipmi_request_in_ipv6_present
|
||||||
when: main_ipv6_exists.stat.exists
|
when: main_ipv6_exists.stat.exists
|
||||||
failed_when: "smtpd_additional_outgoung_ports_ipv6_present.rc > 1"
|
failed_when: "allow_ipmi_request_in_ipv6_present.rc > 1"
|
||||||
changed_when: "smtpd_additional_outgoung_ports_ipv6_present.rc > 0"
|
changed_when: "allow_ipmi_request_in_ipv6_present.rc > 0"
|
||||||
|
|
||||||
- name: Adjust file '/etc/ipt-firewall/main_ipv6.conf' (FreeIPA Service)
|
- name: Adjust file '/etc/ipt-firewall/main_ipv6.conf' (allow_ipmi_request_in)
|
||||||
blockinfile:
|
blockinfile:
|
||||||
path: /etc/ipt-firewall/main_ipv6.conf
|
path: /etc/ipt-firewall/main_ipv6.conf
|
||||||
insertafter: '^#?\s*mail_user_ports='
|
insertafter: '^#?\s*ipmi_tcp_ports='
|
||||||
block: |
|
block: |
|
||||||
|
# - Allow Access to IPMI Interfaces from outside
|
||||||
# Additional Ports for outgoing smtp traffic
|
# -
|
||||||
#
|
# - Note:
|
||||||
# blank separated list of ports
|
# - In addition, ports
|
||||||
#
|
# -
|
||||||
smtpd_additional_outgoung_ports=""
|
# - TCP :443, 3520, 5900
|
||||||
marker: "# Marker set by modify-ipt-gateway.yml (FreeIPA Service)"
|
# - UDP: 623
|
||||||
|
# -
|
||||||
|
# - must be forwarded to the IP address of the IPMI network interface in the router (e.g., Fritzbox).
|
||||||
|
# -
|
||||||
|
allow_ipmi_request_in=false
|
||||||
|
marker: "# Marker set by modify-ipt-gateway.yml (allow_ipmi_request_in)"
|
||||||
when:
|
when:
|
||||||
- main_ipv6_exists.stat.exists
|
- main_ipv6_exists.stat.exists
|
||||||
- smtpd_additional_outgoung_ports_ipv6_present is changed
|
- allow_ipmi_request_in_ipv6_present is changed
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
|
|||||||
4
templates/apt-migrate-to-trixie/99-backports.j2
Normal file
4
templates/apt-migrate-to-trixie/99-backports.j2
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Backports nicht automatisch bevorzugen
|
||||||
|
Package: *
|
||||||
|
Pin: release n={{ target_release }}-backports
|
||||||
|
Pin-Priority: {{ backports_pin_priority }}
|
||||||
8
templates/apt-migrate-to-trixie/backports.sources.j2
Normal file
8
templates/apt-migrate-to-trixie/backports.sources.j2
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Verwaltet via Ansible - Backports für {{ target_release }}
|
||||||
|
Types: deb deb-src
|
||||||
|
URIs: {{ debian_mirror }}
|
||||||
|
Suites: {{ target_release }}-backports
|
||||||
|
Components: {{ components }}
|
||||||
|
{% if use_signed_by %}
|
||||||
|
Signed-By: {{ signed_by_keyring }}
|
||||||
|
{% endif %}
|
||||||
15
templates/apt-migrate-to-trixie/debian.sources.j2
Normal file
15
templates/apt-migrate-to-trixie/debian.sources.j2
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Verwaltet via Ansible - Debian Basis & Updates für {{ target_release }}
|
||||||
|
Types: deb deb-src
|
||||||
|
URIs: {{ debian_mirror }}
|
||||||
|
Suites: {{ target_release }} {{ target_release }}-updates
|
||||||
|
Components: {{ components }}
|
||||||
|
Signed-By: default
|
||||||
|
EOF
|
||||||
|
# Verwaltet via Ansible - Debian Basis & Updates für {{ target_release }}
|
||||||
|
Types: deb deb-src
|
||||||
|
URIs: {{ debian_mirror }}
|
||||||
|
Suites: {{ target_release }} {{ target_release }}-updates
|
||||||
|
Components: {{ components }}
|
||||||
|
{% if use_signed_by %}
|
||||||
|
Signed-By: {{ signed_by_keyring }}
|
||||||
|
{% endif %}
|
||||||
8
templates/apt-migrate-to-trixie/security.sources.j2
Normal file
8
templates/apt-migrate-to-trixie/security.sources.j2
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Verwaltet via Ansible - Security für {{ target_release }}
|
||||||
|
Types: deb deb-src
|
||||||
|
URIs: {{ security_mirror }}
|
||||||
|
Suites: {{ target_release }}-security
|
||||||
|
Components: {{ components }}
|
||||||
|
{% if use_signed_by %}
|
||||||
|
Signed-By: {{ signed_by_keyring }}
|
||||||
|
{% endif %}
|
||||||
Reference in New Issue
Block a user