Fix issues with EL8

This commit is contained in:
Anthony Rose 2021-12-12 22:46:38 +00:00
parent 3ad638b65b
commit 006f6c8688
3 changed files with 6 additions and 1 deletions

View file

@ -39,7 +39,6 @@
- dnf-automatic
- git
- gnupg2
- lldb
- mc
- nmap
- openssh-server

View file

@ -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

View file

@ -18,3 +18,4 @@
ansible.builtin.copy:
src: zram-generator.conf
dest: /etc/systemd/zram-generator.conf
when: ansible_distribution_major_version == '9'