Merge branch 'master' of ssh://gitea.mewissen.site:22422/rene/ansible-pull

This commit is contained in:
2025-04-28 18:04:50 +02:00
5 changed files with 35 additions and 12 deletions

View File

@@ -76,4 +76,18 @@
- dnsutils
- unattended-upgrades
- "{{ python_passlib_package }}"
when: ansible_distribution in [ "Debian", "Ubuntu", "Linux Mint" ]
when: ansible_distribution in [ "Debian", "Ubuntu" ]
- name: system setup | utilities | install utilities (linux mint)
tags: packages,system,system setup
package:
state: latest
name:
- bat
- sudo
- htop
- eza
- dnsutils
- unattended-upgrades
- "{{ python_passlib_package }}"
when: ansible_distribution in [ "Linux Mint" ]

View File

@@ -13,7 +13,7 @@
enabled: true
when: ansible_distribution == "Archlinux"
- name: "add cronjob for ansible"
- name: add cronjob for ansible
become: true
become_user: root
cron:
@@ -24,6 +24,23 @@
minute: 0
hour: 1
- name: correct crontab for reboot | remove
become: true
become_user: root
cron:
name: "generate SSH key on reboot, if missing"
job: '[[ -f /etc/ssh/ssh_host_* ]] | ssh-keygen -A'
state: absent
- name: correct crontab for reboot | add
become: true
become_user: root
cron:
name: "generate SSH key on reboot, if missing"
job: '[[ -f /etc/ssh/ssh_host_* ]] || ssh-keygen -A'
state: present
special_time: reboot
# - name: system setup | cron | schedule automatic ansible provisioning
# tags: cron
# cron:
@@ -59,4 +76,4 @@
hour: "0"
minute: "0"
job: "{{ root_home }} + '/bin/cron_pacman'"
when: ansible_distribution in ["Archlinux"]
when: ansible_distribution in ["Archlinux"]

View File

@@ -6,7 +6,6 @@
owner: 'root'
group: 'root'
loop:
- { ip: '192.168.1.240', fqdn: 'coruscant.universe.local'}
- { ip: '192.168.1.238', fqdn: 'gitea.mewissen.site'}
when:
- set_hosts is defined