This commit is contained in:
2026-07-25 14:04:38 -05:00
parent 9b213b81e9
commit 0e820b49f9
+7 -10
View File
@@ -17,7 +17,7 @@
#### !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
####
- name: bootstrap.yml
- name: Bootstrap playbook
hosts: all
tasks:
@@ -28,12 +28,12 @@
- name: Update repositories
become: true
ansible.builtin.apt:
update_cache: yes
update_cache: true
- name: Install bootstrap packages
become: true
ansible.builtin.apt:
state: latest
state: present
pkg:
- bash
- curl
@@ -84,7 +84,6 @@
#### Configure sshd
## New
- name: Make sure /etc/ssh/sshd_config.d exists
become: true
ansible.builtin.file:
@@ -94,7 +93,6 @@
group: root
mode: u=rwx,go=rx
## New
- name: Get /etc/ssh/sshd_config.d/hpf.conf
become: true
ansible.builtin.copy:
@@ -103,7 +101,7 @@
owner: root
group: root
mode: u=rwx,go=rx
backup: yes
backup: true
validate: /usr/sbin/sshd -t -f %s
notify: Restart sshd
@@ -169,7 +167,7 @@
uid: 800
group: hpf-ans
groups: hpf-sudo-np
append: yes
append: true
create_home: true
shell: /usr/bin/bash
@@ -269,14 +267,13 @@
- name: Remove packages installed as dependencies that are no longer required and purge their configuration files
become: true
ansible.builtin.apt:
autoremove: yes
autoremove: true
purge: true
- name: Remove old downloaded packages
become: true
ansible.builtin.apt:
autoclean: yes
# changed_when: false
autoclean: true
#### Handlers