- name: integration/action/make_tmp_path.yml hosts: test-targets any_errors_fatal: true gather_facts: true tasks: - action_passthrough: method: _make_tmp_path register: out - assert: # This string must match ansible.cfg::remote_tmp that: out.result.startswith("{{ansible_user_dir}}/.ansible/mitogen-tests/") - stat: path: "{{out.result}}" register: st - assert: that: st.stat.exists and st.stat.isdir and st.stat.mode == "0700" - file: path: "{{out.result}}" state: absent