fmartingr
/
shelfzilla
Archived
1
0
Fork 0
This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
shelfzilla/provisioning/roles/common/tasks/security.yml

26 lines
510 B
YAML

---
- name: Selinux module Dependecy
yum: name=libselinux-python state=latest
sudo: yes
- selinux: policy=targeted state=permissive
sudo: yes
- name: Clean iptables
shell: /sbin/iptables -F
sudo: yes
- stat: path=/etc/sysconfig/iptables
register: st
- name: Install Iptables statements
copy:
src=iptables
dest=/etc/sysconfig/iptables
sudo: yes
when: local_environment and st.stat.exists
notify: restart iptables
- meta: flush_handlers