--- - name: Delete IPTables Block-All Rule iptables: chain: INPUT jump: REJECT reject_with: icmp-host-prohibited state: absent - name: Delete IPTables Block-All Rule from Rules File replace: path: /etc/iptables/rules.v4 regexp: '-A INPUT -j REJECT --reject-with icmp-host-prohibited' replace: '#-A INPUT -j REJECT --reject-with icmp-host-prohibited' - name: Copy Authorized Keys from ubuntu to root User copy: src: /home/ubuntu/.ssh/authorized_keys dest: /root/.ssh/authorized_keys mode: 0600 remote_src: yes - name: Remove OPC User user: name: opc state: absent remove: yes force: yes ignore_errors: yes - name: Remove Ubuntu User user: name: ubuntu state: absent remove: yes force: yes ignore_errors: yes