Fix issues with EL8
This commit is contained in:
parent
3ad638b65b
commit
006f6c8688
3 changed files with 6 additions and 1 deletions
|
@ -39,7 +39,6 @@
|
|||
- dnf-automatic
|
||||
- git
|
||||
- gnupg2
|
||||
- lldb
|
||||
- mc
|
||||
- nmap
|
||||
- openssh-server
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
name: sshd.service
|
||||
state: restarted
|
||||
when: changed_ssh_config.changed == true
|
||||
- name: Check for firewall-cmd
|
||||
ansible.builtin.stat:
|
||||
path: /usr/bin/firewall-cmd
|
||||
register: firewall_cmd
|
||||
- name: Allow SSH through firewall
|
||||
become: true
|
||||
ansible.posix.firewalld:
|
||||
|
@ -39,3 +43,4 @@
|
|||
permanent: yes
|
||||
state: enabled
|
||||
immediate: yes
|
||||
when: firewall_cmd.stat.exists
|
||||
|
|
|
@ -18,3 +18,4 @@
|
|||
ansible.builtin.copy:
|
||||
src: zram-generator.conf
|
||||
dest: /etc/systemd/zram-generator.conf
|
||||
when: ansible_distribution_major_version == '9'
|
||||
|
|
Loading…
Reference in a new issue