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:
@@ -129,28 +129,6 @@
|
|||||||
# state: present
|
# state: present
|
||||||
# loop: '{{ ssh_public_keys }}'
|
# 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
|
- name: Update apt cache
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
@@ -186,6 +164,29 @@
|
|||||||
# reboot_timeout: 600
|
# reboot_timeout: 600
|
||||||
# when: upgrade_output is changed
|
# 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
|
- name: Deploy the Samba AD DC role
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
|||||||
Reference in New Issue
Block a user