From eb97a8e35d7d35d5a869d823e25b68131695c221 Mon Sep 17 00:00:00 2001 From: geloman Date: Mon, 8 Jul 2024 03:01:25 +0800 Subject: [PATCH] Create role for neovim --- ansible/roles/neovim/tasks/install.yaml | 4 ++++ ansible/roles/neovim/tasks/main.yaml | 2 ++ ansible/roles/neovim/tasks/setup.yaml | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 ansible/roles/neovim/tasks/install.yaml create mode 100644 ansible/roles/neovim/tasks/main.yaml create mode 100644 ansible/roles/neovim/tasks/setup.yaml diff --git a/ansible/roles/neovim/tasks/install.yaml b/ansible/roles/neovim/tasks/install.yaml new file mode 100644 index 0000000..59c7f00 --- /dev/null +++ b/ansible/roles/neovim/tasks/install.yaml @@ -0,0 +1,4 @@ +- name: Install neovim + ansible.builtin.package: + name: neovim + state: latest diff --git a/ansible/roles/neovim/tasks/main.yaml b/ansible/roles/neovim/tasks/main.yaml new file mode 100644 index 0000000..2515304 --- /dev/null +++ b/ansible/roles/neovim/tasks/main.yaml @@ -0,0 +1,2 @@ +- ansible.builtin.import_tasks: install.yaml +- ansible.builtin.import_tasks: setup.yaml diff --git a/ansible/roles/neovim/tasks/setup.yaml b/ansible/roles/neovim/tasks/setup.yaml new file mode 100644 index 0000000..2a35376 --- /dev/null +++ b/ansible/roles/neovim/tasks/setup.yaml @@ -0,0 +1,5 @@ +- name: Symlink neovim config + ansible.builtin.file: + src: ~/.dotfiles/nvim + dest: ~/.config/nvim + state: link