--- # tasks file for shell-conf - name: Clone ohmyzsh git: repo: "https://github.com/robbyrussell/oh-my-zsh.git" dest: "~/.oh-my-zsh" - name: Create config directory file: path: "{{ item }}" state: directory recurse: yes with_items: - ~/.config/dunst - ~/.config/termite - ~/.config/rofi - ~/.oh-my-zsh/custom/themes/ - name: Link config files file: src: "{{ item.src }}" dest: "{{ item.dest }}" state: link force: yes with_items: - { src: "{{ role_path }}/files/tmux.conf", dest: ~/.tmux.conf } - { src: "{{ role_path }}/files/compton.conf", dest: ~/.compton.conf } - { src: "{{ role_path }}/files/aliases", dest: ~/.aliases } - { src: "{{ role_path }}/files/dunstrc", dest: ~/.config/dunst/dunstrc } - { src: "{{ role_path }}/files/termite.conf", dest: ~/.config/termite/config } - { src: "{{ role_path }}/files/Xmodmap", dest: ~/.Xmodmap } - { src: "{{ role_path }}/files/Xdefaults", dest: ~/.Xdefaults } - { src: "{{ role_path }}/files/zshrc", dest: ~/.zshrc } - { src: "{{ role_path }}/files/bashrc", dest: ~/.bashrc } - { src: "{{ role_path }}/files/zsh_custom_themes/alanpeabody.zsh-theme", dest: ~/.oh-my-zsh/custom/themes/alanpeabody.zsh-theme } - { src: "{{ role_path }}/files/zsh_custom_themes/custom.zsh", dest: ~/.oh-my-zsh/custom/themes/custom.zsh } - { src: "{{ role_path }}/files/zsh_custom_themes/powerlevel9k", dest: ~/.oh-my-zsh/custom/themes/powerlevel9k } - name: Set zsh as main shell become: yes shell: usermod --shell /bin/zsh "{{ ansible_user_id }}" - name: Acrivate locale become : yes lineinfile: path : /etc/locale.gen regexp : "^# es_ES.UTF-8" line : "es_ES.UTF-8" - name: Generate locale become: yes shell: locale-gen