diff options
Diffstat (limited to 'src/config/tasks/main.yaml')
-rw-r--r-- | src/config/tasks/main.yaml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/config/tasks/main.yaml b/src/config/tasks/main.yaml new file mode 100644 index 0000000..fe93e59 --- /dev/null +++ b/src/config/tasks/main.yaml @@ -0,0 +1,62 @@ +- name: Install shell items + block: + - name: Setup ZSH + ansible.builtin.dnf: + name: "zsh" + state: latest + - name: Setup oh-my-zsh + become: true + become_user: aaditya + ansible.builtin.shell: 'sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended' + + - name: Setup p10k, tmux and zshrc + ansible.builtin.copy: + src: shell/{{ item }} + dest: "/home/{{ config.username }}" + backup: yes + loop: + - .p10k.zsh + - .zshrc + - .tmux.conf + + - name: Setup vimrc and vim bundles + ansible.builtin.copy: + src: shell/{{ item }} + dest: "/home/{{ config.username }}" + backup: yes + loop: + - .vimrc + + - name: Setup vim/neovim directories + ansible.builtin.copy: + src: "{{ item }}" + dest: "/home/{{ config.username }}/.config" + backup: yes + loop: + - nvim + + when: 'config.config.install_shell' + +- name: Install Dotfiles (Wayland) + ansible.builtin.copy: + src: "{{ item }}" + dest: "/home/{{ config.username }}/.config/" + backup: yes + loop: "{{ config_wayland }}" + when: 'config.config.install_wayland' + +- name: Install Dotfiles (Xorg) + ansible.builtin.copy: + src: "{{ item }}" + dest: "/home/{{ config.username }}/.config/" + backup: yes + loop: "{{ config_xorg }}" + when: 'config.config.install_xorg' + +- name: Install Dotfiles (All) + ansible.builtin.copy: + src: "{{ item }}" + dest: "/home/{{ config.username }}/.config/" + backup: yes + loop: "{{ config_all }}" + when: "'config.config.install_xorg' or 'config.config.install_wayland'" |