diff --git a/ansible-playbooks/apt-packages.yml b/ansible-playbooks/apt-packages.yml index fada30f..d549c84 100644 --- a/ansible-playbooks/apt-packages.yml +++ b/ansible-playbooks/apt-packages.yml @@ -117,7 +117,6 @@ - ncurses-base - ncurses-bin - ncurses-term - - neovim - openssh-server - openssh-sftp-server - pkg-config @@ -156,6 +155,7 @@ - libmysqlclient-dev - zsh - jq + - stow - name: Add my user to docker group ansible.builtin.user: name: "{{ ansible_user_id }}" diff --git a/ansible-playbooks/dotfile-copy.yml b/ansible-playbooks/dotfile-copy.yml index c7740e4..18bfcca 100644 --- a/ansible-playbooks/dotfile-copy.yml +++ b/ansible-playbooks/dotfile-copy.yml @@ -1,32 +1,18 @@ --- -- name: Copy dotfiles +- name: Configure dotfiles hosts: localhost tasks: - - name: Copy .bashrc - copy: - src: "{{ playbook_dir }}/../.bashrc" - dest: "/home/{{ ansible_user_id }}" - - name: Copy .bash_aliases - copy: - src: "{{ playbook_dir }}/../.bash_aliases" - dest: "/home/{{ ansible_user_id }}" - - name: Copy .profile - copy: - src: "{{ playbook_dir }}/../.profile" - dest: "/home/{{ ansible_user_id }}" - - name: Copy .vimrc - copy: - src: "{{ playbook_dir }}/../.vimrc" - dest: "/home/{{ ansible_user_id }}" - - name: Copy .gitconfig - copy: - src: "{{ playbook_dir }}/../.gitconfig" - dest: "/home/{{ ansible_user_id }}" - - name: Copy .vim - copy: - src: "{{ playbook_dir }}/../.vim" - dest: "/home/{{ ansible_user_id }}" - - name: Copy .config - copy: - src: "{{ playbook_dir }}/../.config" - dest: "/home/{{ ansible_user_id }}" + - name: Stow dotfile packages + shell: | + stow bash + stow git + stow btop + stow mdless + stow powerline + stow pypoetry + stow tmux + stow zsh + stow vim + stow nvim + args: + chdir: "{{ playbook_dir }}/.." diff --git a/ansible-playbooks/setup.yml b/ansible-playbooks/setup.yml index 19eb98c..7e942f1 100644 --- a/ansible-playbooks/setup.yml +++ b/ansible-playbooks/setup.yml @@ -2,6 +2,9 @@ - name: Install apt packages import_playbook: apt-packages.yml +- name: Install snap packages + import_playbook: snap-packages.yml + - name: Copy dotfiles import_playbook: dotfile-copy.yml diff --git a/ansible-playbooks/snap-packages.yml b/ansible-playbooks/snap-packages.yml new file mode 100644 index 0000000..c3ad856 --- /dev/null +++ b/ansible-playbooks/snap-packages.yml @@ -0,0 +1,9 @@ +--- +- name: snap-pacakges + hosts: localhost + tasks: + - name: Install "nvim" with option --classic + community.general.snap: + name: nvim + classic: true + become: true