Take into account goroboro's review
This commit is contained in:
parent
5a81ce5e40
commit
b8becbbaa0
5 changed files with 33 additions and 7 deletions
|
|
@ -6,7 +6,7 @@
|
|||
postinstall_disable_ssh_with_passwords: true
|
||||
postinstall_increase_cockpit_security: false
|
||||
postinstall_root_login_key: false
|
||||
postinstall_hostname_time_configuration: true
|
||||
postinstall_hostname_time_configuration: false
|
||||
postinstall_install_failban: true
|
||||
postinstall_install_logwatch: true
|
||||
postinstall_disable_llmnr_mdns: true
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
|
||||
- name: Set the system hostname
|
||||
become: true
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ server_hostname }}"
|
||||
|
||||
|
|
|
|||
19
roles/postinstall/tasks/assert.yml
Normal file
19
roles/postinstall/tasks/assert.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
|
||||
- name: assert | Test server_hostname
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- server_hostname is defined
|
||||
- server_hostname is string
|
||||
- server_hostname is not none
|
||||
quiet: true
|
||||
when: postinstall_hostname_time_configuration
|
||||
|
||||
- name: assert | Test server_timezone
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- server_timezone is defined
|
||||
- server_timezone is string
|
||||
- server_timezone is not none
|
||||
quiet: true
|
||||
when: postinstall_hostname_time_configuration
|
||||
|
|
@ -2,6 +2,12 @@
|
|||
---
|
||||
# tasks file for fedora-server-postinstall
|
||||
|
||||
- name: Import assert.yml
|
||||
ansible.builtin.import_tasks:
|
||||
file: assert.yml
|
||||
run_once: true
|
||||
delegate_to: localhost
|
||||
|
||||
# linux-system-roles.sshd ???
|
||||
- name: 3. Disable SSH Login with passwords for system users
|
||||
ansible.builtin.import_tasks:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[commands]
|
||||
apply_updates = {{ automatic_apply_updates | lower }}
|
||||
apply_updates = {{ postinstall_automatic_apply_updates | lower }}
|
||||
download_updates = yes
|
||||
network_online_timeout = 60
|
||||
random_sleep = 0
|
||||
|
|
@ -8,11 +8,11 @@ reboot = never
|
|||
[emitters]
|
||||
emit_via = email
|
||||
email_from = root@{{ ansible_facts.fqdn }}
|
||||
email_to = {{ automatic_email_to }}
|
||||
email_to = {{ postinstall_automatic_email_to }}
|
||||
emit_no_updates = no
|
||||
[email]
|
||||
email_from = root@{{ ansible_facts.fqdn }}
|
||||
email_to = {{ automatic_email_to }}
|
||||
email_host = {{ automatic_email_host }}
|
||||
email_port = {{ automatic_email_port }}
|
||||
email_tls = {{ automatic_email_tls | lower }}
|
||||
email_to = {{ postinstall_automatic_email_to }}
|
||||
email_host = {{ postinstall_automatic_email_host }}
|
||||
email_port = {{ postinstall_automatic_email_port }}
|
||||
email_tls = {{ postinstall_automatic_email_tls | lower }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue