Author SHA1 Message Date
alessandrovitali 2ce3c968f9 bump 2026-09-04 00:42:54 +02:00
alessandrovitali d98c0b7f65 validate SSH drop-in template 2026-09-04 00:42:31 +02:00
alessandrovitali 8d0bb7b166 add conditional reboot on kernel upgrades 2026-09-04 00:39:11 +02:00
alessandrovitali 2f1714b70b chore 2026-09-04 00:35:30 +02:00
alessandrovitali b07a4e75aa fix sshd handler 2026-09-04 00:05:27 +02:00
alessandrovitali 83a1a770c1 update README 2026-09-03 21:06:47 +02:00
alessandrovitali 23cda0168e update collection namespace 2026-09-03 17:39:34 +02:00
8 changed files with 19 additions and 41 deletions

No files matched your search

+1 -3
View File
@@ -1,5 +1,3 @@
# Ansible Collection Opinionated set of roles to configure reasonable defaults for newly provisioned virtual machines. The repository provides a ready-to-use Ansible Collection (`studiovitali.ansible`) containing reusable roles.
Opinionated set of roles to configure reasonable defaults for newly provisioned virtual machines. The repository provides a ready-to-use Ansible Collection (`studio.ansible`) containing reusable roles.
Currently only supports Debian-based systems. Currently only supports Debian-based systems.
+2 -2
View File
@@ -1,9 +1,9 @@
## galaxy.yml ## galaxy.yml
namespace: studio namespace: studiovitali
name: ansible name: ansible
readme: README.md readme: README.md
version: 0.0.1 version: 0.1.1
authors: authors:
- Studio Vitali - Studio Vitali
description: Studio Ansible collection containing common roles description: Studio Ansible collection containing common roles
+1 -1
View File
@@ -9,6 +9,6 @@ base_packages:
- rsync - rsync
- unzip - unzip
- unattended-upgrades - unattended-upgrades
# - acl ## needed for Ansible to become unprivileged user # - acl ## needed for ansible to become unprivileged user
# - python3-pip # - python3-pip
# - wget # - wget
-16
View File
@@ -1,16 +0,0 @@
---
galaxy_info:
author: Studio Vitali
description: Installs essential system utilities on Debian.
license: MIT
min_ansible_version: "2.15"
platforms:
- name: Debian
versions:
- bookworm
- trixie
galaxy_tags:
- apt
dependencies: []
allow_duplicates: false
+12 -1
View File
@@ -26,7 +26,7 @@
state: present state: present
update_cache: true update_cache: true
become: true become: true
#
# - name: Enable unattended-upgrades # - name: Enable unattended-upgrades
# ansible.builtin.copy: # ansible.builtin.copy:
# dest: /etc/apt/apt.conf.d/20auto-upgrades # dest: /etc/apt/apt.conf.d/20auto-upgrades
@@ -35,3 +35,14 @@
# APT::Periodic::Unattended-Upgrade "1"; # APT::Periodic::Unattended-Upgrade "1";
# mode: "0644" # mode: "0644"
# when: ansible_facts['os_family'] == "Debian" # when: ansible_facts['os_family'] == "Debian"
- name: Check if reboot is required
ansible.builtin.stat:
path: /var/run/reboot-required
register: reboot_required_file
- name: Reboot host if necessary
ansible.builtin.reboot:
post_reboot_delay: 10
become: true
when: reboot_required_file.stat.exists
-17
View File
@@ -1,17 +0,0 @@
---
galaxy_info:
author: Studio Vitali
description: Installs Docker Engine on Debian.
license: MIT
min_ansible_version: "2.15"
platforms:
- name: Debian
versions:
- bookworm
- trixie
galaxy_tags:
- docker
- container
dependencies: []
allow_duplicates: true
+1
View File
@@ -1,5 +1,6 @@
--- ---
- name: Restart sshd - name: Restart sshd
become: true
ansible.builtin.service: ansible.builtin.service:
name: ssh name: ssh
state: restarted state: restarted
+2 -1
View File
@@ -17,6 +17,7 @@
owner: root owner: root
group: root group: root
mode: "0644" mode: "0644"
validate: /usr/sbin/sshd -t -f %s
notify: Restart sshd notify: Restart sshd
- name: Enable fail2ban - name: Enable fail2ban
@@ -32,4 +33,4 @@
ansible.builtin.service: ansible.builtin.service:
name: fail2ban name: fail2ban
state: started state: started
enabled: yes enabled: true