diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2022-05-11 20:17:02 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2022-05-11 20:17:02 -0500 |
| commit | 083edc09178e5fd8522469c2d540ce922e031cdb (patch) | |
| tree | d2c3d9dcca34b7f86c0acb295e81451050f5be98 /ansible/setup.yaml | |
| parent | Update zsh prompt (diff) | |
| download | dotfiles-083edc09178e5fd8522469c2d540ce922e031cdb.zip | |
Add dnf packages and clean up ansible scripts
Diffstat (limited to 'ansible/setup.yaml')
| -rw-r--r-- | ansible/setup.yaml | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/ansible/setup.yaml b/ansible/setup.yaml index e05cd10..05e7612 100644 --- a/ansible/setup.yaml +++ b/ansible/setup.yaml @@ -15,31 +15,28 @@ - "$HOME/bin" - include_tasks: tasks/link_dotfiles.yaml - tags: - - links - - include_tasks: tasks/packages.yaml - tags: - - packages + - 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 - tags: - - desktop + 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 - command: > - wget \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim \ - -P "$HOME/.config/nvim/autoload" + 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 |