In the last couple of days I've typed away at some Ansible automation, and one specific group of tasks I dealt with was the creation of a target symlink and parent directories. I wasn't able to do this in one go, and thus arrived at the following result:
- name: "absolute home {{ config_path }}"
set_fact:
absolute_home_config_path: "{{ user_home_dir + '/.' + config_path }}"
- name: "{{ absolute_home_config_path|dirname }} present"