General cleanup, fix lint, add immediate: true

Assisted-by: Pi:qwen3.8-flash-next-it
This commit is contained in:
Brett Weir 2026-09-25 01:31:23 -07:00
commit c5f03bd629
7 changed files with 5 additions and 15 deletions

View file

@ -121,7 +121,7 @@ build the artifact and install it, then point Ansible at the installation path:
```bash
ansible-galaxy collection build .
ansible-galaxy collection install fedoraserver-general-0.1.0.tar.gz -p ./collections
ansible-galaxy collection install fedoraserver-general-<version>.tar.gz -p ./collections
ANSIBLE_COLLECTIONS_PATH=./collections ansible-playbook -i inventory site.yml
```

View file

@ -1,7 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-or-later
---
# defaults file for fedora-server-postinstall
# what postinstall tasks do we want to run
postinstall_disable_ssh_with_passwords: true
postinstall_increase_cockpit_security: true

View file

@ -1,6 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-or-later
---
# handlers file for fedora-server-postinstall
- name: Reload the SSH service
ansible.builtin.service:
@ -17,7 +16,3 @@
ansible.builtin.systemd:
state: reloaded
name: systemd-resolved.service
- name: Reload firewalld
ansible.posix.firewalld:
state: reloaded

View file

@ -2,12 +2,12 @@
# Remove the cockpit service from the permanent firewalld configuration.
# Access Cockpit afterwards via an SSH tunnel, a Cockpit proxy, or by
# re-adding the service on an ad hoc basis.
# The firewalld module is a no-op (and no reload) if the cockpit service
# is not present in the permanent configuration.
# The firewalld module is a no-op if the cockpit service is not present in the
# default zone.
- name: Remove the cockpit service from the firewalld permanent configuration
- name: Remove the cockpit service from the firewalld default zone
ansible.posix.firewalld:
service: cockpit
permanent: true
immediate: true
state: disabled
notify: Reload firewalld

View file

@ -12,4 +12,3 @@
dest: /etc/systemd/resolved.conf.d/20-disable-llmnr-mdns.conf
mode: '0644'
notify: Reload systemd-resolved

View file

@ -1,6 +1,5 @@
# SPDX-License-Identifier: GPL-3.0-or-later
---
# tasks file for fedora-server-postinstall
- name: Import assert.yml
ansible.builtin.import_tasks:

View file

@ -1,3 +1,2 @@
# SPDX-License-Identifier: GPL-3.0-or-later
---
# vars file for fedora-server-postinstall