Compare commits

..

2 Commits

Author SHA1 Message Date
3d3f950dad Remove 'warn' - its no longer supported. 2025-10-16 19:29:14 +02:00
06d4fda42a update.. 2025-10-16 18:11:42 +02:00
7 changed files with 89 additions and 27 deletions

View File

@@ -238,6 +238,41 @@ default_user:
# vars used by roles/common/tasks/cron.yml # 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: #cron_user_special_time_entries:
# #
# - name: "Restart DNS Cache service 'systemd-resolved'" # - name: "Restart DNS Cache service 'systemd-resolved'"
@@ -347,6 +382,7 @@ samba_user:
groups: groups:
- verwaltung - verwaltung
- intern - intern
- hoffmann-elberling
password: 'buero2011' password: 'buero2011'
- name: axel - name: axel

View File

@@ -347,6 +347,8 @@ samba_user:
groups: groups:
- verwaltung - verwaltung
- intern - intern
- hoffmann-elberling
- gubitz-partner
password: 'buero2011' password: 'buero2011'
- name: axel - name: axel

View File

@@ -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

View File

@@ -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

View File

@@ -27,13 +27,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
@@ -330,11 +328,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

View File

@@ -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

View File

@@ -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