- hosts: all_splunk_instances tasks: - name: Gathering Facts include_tasks: roles/splunk_common/tasks/pre_install_subtasks/get_facts.yml when: - splunk_get_fact is not defined - hosts: all_splunk_instances serial: - 1 - 100% roles: - splunk_common tags: all,installation - hosts: localhost connection: local tasks: - name: Cleanup secret file: dest: "/tmp/splunk_secret" state: "absent" become: yes become_user: root