Add DNS resolution, time sync, and firewall baselines

This commit is contained in:
Isshi0417 2026-07-03 06:21:31 +00:00
parent e14d796e47
commit ab88f1691f

View File

@ -4,7 +4,6 @@
become: true become: true
tasks: tasks:
- name: Upgrade all system packages # noqa package-latest - name: Upgrade all system packages # noqa package-latest
ansible.builtin.dnf: ansible.builtin.dnf:
name: "*" name: "*"
@ -19,4 +18,27 @@
- git - git
- bash-completion - bash-completion
- wget - wget
- firewalld
- chrony
state: present state: present
- name: Ensure chronyd is running and synced
ansible.builtin.systemd:
name: chronyd
state: started
enabled: true
- name: Configure local host resolution mapping
ansible.builtin.blockinfile:
path: /etc/hosts
block: |
172.30.1.200 ansible-control.lab.local ansible-control
172.30.1.201 web-portfolio.lab.local web-portfolio
172.30.1.202 media-stream.lab.local media-stream
marker: "# {mark} ANSIBLE MANAGED HOMELAP MAP"
- name: Ensure firewalld is running
ansible.builtin.systemd:
name: firewalld
state: started
enabled: true