diff --git a/tasks/amazon_linux.yaml b/tasks/amazon_linux.yaml new file mode 100644 index 0000000..09da810 --- /dev/null +++ b/tasks/amazon_linux.yaml @@ -0,0 +1,5 @@ +--- + +- name: Amazon Linux 2 | IP tables software configuration + include_tasks: configure_iptables_software.yaml + diff --git a/tasks/configure_iptables_software.yaml b/tasks/configure_iptables_software.yaml new file mode 100644 index 0000000..c35b58d --- /dev/null +++ b/tasks/configure_iptables_software.yaml @@ -0,0 +1,10 @@ +- name: Ensure iptables package is installed + ansible.builtin.yum: + name: iptables + state: present + +- name: Ensure iptables-services package is installed + ansible.builtin.yum: + name: iptables-services + state: present +