aboutsummaryrefslogtreecommitdiffstats
path: root/src/setup.yaml
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2022-05-14 10:29:07 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2022-05-14 10:29:07 -0500
commit0e1c7c11d58e86a5a738a025e1afb69596f4d9b2 (patch)
tree0d33bc20d97ccf3ee9b057244c2fe85d0d4e1e7c /src/setup.yaml
parentAdd license (diff)
downloaddotfiles-0e1c7c11d58e86a5a738a025e1afb69596f4d9b2.zip
Add more dotfiles
Diffstat (limited to 'src/setup.yaml')
-rw-r--r--src/setup.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/setup.yaml b/src/setup.yaml
new file mode 100644
index 0000000..ee8ca9f
--- /dev/null
+++ b/src/setup.yaml
@@ -0,0 +1,40 @@
+---
+- name: Playbook to manage personal dotfiles
+ hosts: localhost
+ connection: local
+ tasks:
+ - name: Create folders
+ file:
+ path: "{{item}}"
+ state: directory
+ loop:
+ - "$HOME/src"
+ - "$HOME/bin"
+
+ - include_tasks: tasks/shared_dotfiles.yaml
+
+ - include_tasks: tasks/dnf_packages.yaml
+ when: ansible_os_family == "RedHat"
+
+ - include_tasks: tasks/pkg_packages.yaml
+ when: ansible_os_family == "FreeBSD"
+
+ - include_tasks: tasks/desktop.yaml
+ when: ansible_os_family == "FreeBSD"
+
+ - name: Ensure shell is set to zsh
+ vars:
+ current_user: "{{ ansible_user_id }}"
+ become: yes
+ become_method: su
+ user:
+ name: "{{ current_user }}"
+ shell: /usr/local/bin/zsh
+
+ - name: Install vim-plug
+ get_url:
+ url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+ dest: "$HOME/.config/nvim/autoload/plug.vim"
+
+ - name: Install vim-plug plugins
+ shell: nvim +PlugInstall +qall --headless