Skip to content

Commit

Permalink
push updates for distros
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma committed May 3, 2024
1 parent a002b74 commit ede55d4
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 145 deletions.
21 changes: 21 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
#
# Ansible managed
#
exclude_paths:
- meta/preferences.yml
- molecule/default/prepare.yml
- molecule/default/converge.yml
- molecule/default/collections.yml
- molecule/resources/
- .tox
- .cache
- .github
- requirements.yml

skip_list:
- yaml[truthy]
- no-free-form

enable_list:
- name[prefix]
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: CI

on:
Expand Down
6 changes: 3 additions & 3 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
fnm_npmrc_suffix: ".config/npm/config"
tasks:
- name: Add hurricanehrndz user
user:
ansible.builtin.user:
name: "{{ nvim_user }}"
create_home: yes
create_home: true
shell: /bin/bash

- name: Run nvim role
include_role:
ansible.builtin.include_role:
name: nvim
8 changes: 8 additions & 0 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: Prepare
hosts: all
become: true
gather_facts: false

roles:
- role: buluma.bootstrap
17 changes: 0 additions & 17 deletions molecule/resources/playbooks/converge.yml

This file was deleted.

55 changes: 0 additions & 55 deletions molecule/resources/playbooks/create.yml

This file was deleted.

13 changes: 0 additions & 13 deletions molecule/resources/playbooks/destroy.yml

This file was deleted.

46 changes: 0 additions & 46 deletions molecule/resources/tests/test_default.py

This file was deleted.

12 changes: 6 additions & 6 deletions tasks/03-install-neovim-helpers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
executable: "{{ pyenv_root }}/versions/{{ nvim_python_ver }}/bin/pip"
environment:
PYENV_ROOT: "{{ pyenv_root }}"
become: yes
become: true
become_user: "{{ nvim_user }}"

- name: Rehash pip modules
Expand All @@ -18,7 +18,7 @@
environment:
PYENV_ROOT: "{{ pyenv_root }}"
PATH: "{{ pyenv_root }}/bin:{{ ansible_env.PATH }}"
become: yes
become: true
become_user: "{{ nvim_user }}"

- name: Install system requirements for LSP clients
Expand All @@ -35,7 +35,7 @@
PATH: "{{ ansible_env.PATH }}:{{ rustup_user_home }}/{{ rustup_cargo_home_suffix }}/bin"
RUSTUP_HOME: "{{ rustup_user_home }}/{{ rustup_home_suffix }}"
CARGO_HOME: "{{ rustup_user_home }}/{{ rustup_cargo_home_suffix }}"
become: yes
become: true
become_user: "{{ nvim_user }}"
when:
- nvim_install_rls|default(false)
Expand All @@ -51,7 +51,7 @@
chmod +x ~/.local/bin/rust-analyzer
executable: /bin/bash
creates: "{{ nvim_user_home }}/.local/bin/rust-analyzer"
become: yes
become: true
become_user: "{{ nvim_user }}"
when: nvim_install_rls|default(false)

Expand All @@ -62,7 +62,7 @@
dest: "{{ nvim_user_home }}/.local/share/fzf/"
version: master
depth: 1
become: yes
become: true
become_user: "{{ nvim_user }}"
when: nvim_install_fzf|default(false)

Expand All @@ -78,6 +78,6 @@
{%- endif %}
executable: /bin/bash
creates: "{{ nvim_user_home }}/.local/share/fzf/bin/fzf"
become: yes
become: true
become_user: "{{ nvim_user }}"
when: nvim_install_fzf|default(false)
10 changes: 5 additions & 5 deletions tasks/04-install-neovim-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
executable: /bin/bash
environment:
HOME: "{{ nvim_user_home }}"
become: yes
become: true
become_user: "{{ nvim_user }}"

- name: Clone nvim config from git repo
Expand All @@ -19,7 +19,7 @@
dest: "{{ nvim_git_dest }}"
register: nvim_git_result
changed_when: "nvim_git_result.after|default('after') != nvim_git_result.before|default('before')"
become: yes
become: true
become_user: "{{ nvim_user }}"

- name: Ensure XDG_RUNTIME_DIR exsists
Expand All @@ -42,7 +42,7 @@
PATH: "{{ pyenv_root }}/bin:{{ fnm_default_nodejs_path }}:/usr/loca/bin:{{ ansible_env.PATH }}"
register: nvim_plugin_install
changed_when: nvim_plugin_install.stdout_lines|length > 5
become: yes
become: true
become_user: "{{ nvim_user }}"

- name: Define lsp cache dir
Expand All @@ -67,7 +67,7 @@
XDG_CACHE_HOME: "{{ nvim_user_home }}/.cache"
XDG_CONFIG_HOME: "{{ nvim_user_home }}/.config"
with_items: "{{ nvim_lsp_servers }}"
become: yes
become: true
become_user: "{{ nvim_user }}"

- name: Install lua-language-server manually
Expand Down Expand Up @@ -106,5 +106,5 @@
creates: "{{ lua_ls_dest }}/bin/Linux/lua-language-server"
environment:
HOME: "{{ nvim_user_home }}"
become: yes
become: true
become_user: "{{ nvim_user }}"

0 comments on commit ede55d4

Please sign in to comment.