On EL7, poke holes for http and https. On EL6, just stop iptables.
Signed-off-by: Zack Cerza <zack@redhat.com>
--- /dev/null
+---
+- name: Stop iptables
+ service:
+ name: iptables
+ state: stopped
--- /dev/null
+---
+- name: Enable http and https using firewalld
+ firewalld:
+ service: "{{ item }}"
+ state: enabled
+ permanent: yes
+ with_items:
+ - http
+ - https
+ tags:
+ - firewall
--- /dev/null
+---
+- name: Include rhel 7.x specific tasks.
+ include: redhat/rhel_7.yml
+ when: ansible_distribution_major_version == "7"
+
+- name: Include rhel 6.x specific tasks.
+ include: redhat/rhel_6.yml
+ when: ansible_distribution_major_version == "6"
state: latest
with_items: cobbler_extra_packages
when: cobbler_extra_packages|length > 0
+
+# configure red hat specific things
+- include: setup-redhat.yml
+ when: ansible_distribution in ('RedHat', 'CentOS')