--- - hosts: localhost connection: local name: "Remove the master_images folder and deployment kernel/ramdisk for clean redeployments when testing." sudo: yes gather_facts: yes tasks: - file: path=/tftpboot/master_images state=absent - file: path="{{ipa_kernel}}" state=absent - file: path="{{ipa_ramdisk}}" state=absent