diff options
Diffstat (limited to 'roles/dotfiles')
| -rw-r--r-- | roles/dotfiles/tasks/main.yml | 30 | 
1 files changed, 30 insertions, 0 deletions
diff --git a/roles/dotfiles/tasks/main.yml b/roles/dotfiles/tasks/main.yml new file mode 100644 index 0000000..f008142 --- /dev/null +++ b/roles/dotfiles/tasks/main.yml @@ -0,0 +1,30 @@ +--- + +- name: Install packages +  package: name={{ item }} state=present +  with_items: +    - git +    - vim +    - zsh +    - htop +    - tmux +  become: true + +- name: Clone dotfiles +  git: +    repo: 'https://github.com/Tharre/dotfiles.git' +    dest: "{{ ansible_user_dir }}/dotfiles" +    recursive: no +  register: dotfiles + +- name: Install dotfiles +  shell: ./install.sh +  args: +    chdir: "{{ ansible_user_dir }}/dotfiles" +  when: dotfiles.changed + +- name: Change shell to zsh +  user: +    name: "{{ ansible_user_id }}" +    shell: /usr/bin/zsh +  become: true  | 
