You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
604 B

---
- 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