- name: clean up what's been done hosts: all become: true user: ansible tasks: - name: uninstall httpd yum: name: httpd state: absent - name: remove docRoot file: path: /var/www/html state: absent