--- - name: shell environment set_fact: dotfiles_dir: "/tmp/dotfiles" - name: clone dotfiles repo git: repo: https://bxxa.cc/gitea/cinnaboot/dotfiles dest: "{{ dotfiles_dir }}" - name: create a .bash_profile lineinfile: create: true line: "[[ -f ~/.bashrc ]] && . ~/.bashrc" path: "{{ user_home }}/.bash_profile" - name: copy relavent dotfiles to user home copy: src: "{{ dotfiles_dir }}/{{ item }}" dest: "{{ user_home }}/{{ item }}" with_items: - .bashrc - bin - .ctags.d - .gdbinit - .gdbinit.d - .tmux.conf - .vim - .vimrc