--- - name: Setup distrobox workspace hosts: 127.0.0.1 connection: local vars: home_dir: "{{ ansible_facts['env']['HOME'] }}" config_dir: "{{ ansible_facts['env']['HOME'] }}/.config" host_home_dir: "{{ ansible_facts['env']['DISTROBOX_HOST_HOME'] }}" host_config_dir: "{{ ansible_facts['env']['DISTROBOX_HOST_HOME'] }}/.config" dotfiles_config_dir: "{{ ansible_facts['env']['DISTROBOX_HOST_HOME'] }}/dotfiles/.config" tasks: - name: Install user python modules ansible.builtin.pip: name: - hg-evolve - python-lsp-server extra_args: --user - name: Setup bin directory ansible.builtin.file: path: "{{ home_dir }}/bin" state: directory mode: "0755" - name: Setup config directory ansible.builtin.file: path: "{{ home_dir }}/.config" state: directory mode: "0755" - name: Setup config directory ansible.builtin.file: path: "{{ config_dir }}" state: directory mode: "0755" - name: Link git config ansible.builtin.file: src: "{{ host_config_dir }}/git" dest: "{{ config_dir }}/git" state: link - name: Link mercurial config ansible.builtin.file: src: "{{ host_config_dir }}/hg" dest: "{{ config_dir }}/hg" state: link - name: Link nano config ansible.builtin.file: src: "{{ host_config_dir }}/nano" dest: "{{ config_dir }}/nano" state: link - name: Link starship config ansible.builtin.file: src: "{{ dotfiles_config_dir }}/starship.toml" dest: "{{ config_dir }}/starship.toml" state: link