chore 📦: Refactored package installation and update logic for consistency

Simplified the setupacdc.yml file by removing redundant tasks and improving readability. This change ensures that all necessary packages are installed and updated correctly, making it easier to maintain the configuration.
This commit is contained in:
2025-11-05 19:22:41 +01:00
parent 495cf1c384
commit 32a0f30520

View File

@@ -129,28 +129,6 @@
# state: present
# loop: '{{ ssh_public_keys }}'
- name: Install useful packages
ansible.builtin.package:
name:
- nano
- tzdata
# - openssh-server
state: present
- name: Update all packages, autoclean, and autoremove
ansible.builtin.apt:
name: '*'
state: latest
autoclean: yes
autoremove: yes
purge: true
- name: Set timezone to {{ localization_timezone }}
community.general.timezone:
name: '{{ localization_timezone }}'
notify: Restart sshd
tags: [timezone]
- name: Update apt cache
ansible.builtin.apt:
update_cache: true
@@ -186,6 +164,29 @@
# reboot_timeout: 600
# when: upgrade_output is changed
- name: Install useful packages
ansible.builtin.package:
name:
- nano
- tzdata
# - openssh-server
state: present
- name: Update all packages, autoclean, and autoremove
ansible.builtin.apt:
name: '*'
state: latest
autoclean: yes
autoremove: yes
purge: true
- name: Set timezone to {{ localization_timezone }}
community.general.timezone:
name: '{{ localization_timezone }}'
notify: Restart sshd
tags: [timezone]
- name: Deploy the Samba AD DC role
ansible.builtin.include_role: