--- - name: Config dirs file: state: directory path: "$XDG_CONFIG_HOME/{{ item }}" loop: - python - name: Config file copy: src: startup_script.py dest: $XDG_CONFIG_HOME/python/