--- - name: Copy conf ansible.builtin.template: src: "{{ item.src }}" dest: "{{ item.dest }}" group: root mode: u=rwx,g=rx,o=rx loop: - { src: 'firewall', dest: '/usr/bin/firewall' } register: iptables_templates_results become: yes - name: Ensure firewall is load in startup ansible.builtin.cron: name: "Firewall" special_time: "reboot" job: "/usr/bin/firewall" become: yes