From 3951376a2903bbd7a993217aa019af18f9b8d877 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 20 Jul 2025 14:27:09 +0200 Subject: [PATCH] Added draft for neovim and micro --- roles/desk-micro/README.md | 31 +++++++++++++++++++++++++++++++ roles/desk-micro/meta/main.yml | 25 +++++++++++++++++++++++++ roles/desk-micro/tasks/main.yml | 6 ++++++ roles/desk-micro/vars/main.yml | 2 ++ roles/desk-neovim/README.md | 31 +++++++++++++++++++++++++++++++ roles/desk-neovim/meta/main.yml | 25 +++++++++++++++++++++++++ roles/desk-neovim/tasks/main.yml | 6 ++++++ roles/desk-neovim/vars/main.yml | 2 ++ 8 files changed, 128 insertions(+) create mode 100644 roles/desk-micro/README.md create mode 100644 roles/desk-micro/meta/main.yml create mode 100644 roles/desk-micro/tasks/main.yml create mode 100644 roles/desk-micro/vars/main.yml create mode 100644 roles/desk-neovim/README.md create mode 100644 roles/desk-neovim/meta/main.yml create mode 100644 roles/desk-neovim/tasks/main.yml create mode 100644 roles/desk-neovim/vars/main.yml diff --git a/roles/desk-micro/README.md b/roles/desk-micro/README.md new file mode 100644 index 00000000..18a95837 --- /dev/null +++ b/roles/desk-micro/README.md @@ -0,0 +1,31 @@ +# Desk-micro Role for Ansible + +## Overview +This role automates the installation of micro, a CLI text editor, on Pacman‑based systems. It uses the `community.general.pacman` module to ensure the editor is installed and up to date. + +## Requirements +- Ansible 2.9 or higher +- Access to the Pacman package manager (e.g., Arch Linux and derivatives) + +## Role Variables +No additional role variables are required; this role solely manages the installation of the editor. + +## Dependencies +None. + +## Example Playbook +```yaml +- hosts: all + roles: + - desk-micro +``` + +## Further Resources +- Official micro documentation: + https://micro-editor.github.io/ + +## Contributing +Contributions are welcome! Please follow standard Ansible role conventions and best practices. + +## Other Resources +For more context on this role and its development, see the related ChatGPT conversation. diff --git a/roles/desk-micro/meta/main.yml b/roles/desk-micro/meta/main.yml new file mode 100644 index 00000000..98379b89 --- /dev/null +++ b/roles/desk-micro/meta/main.yml @@ -0,0 +1,25 @@ +--- +galaxy_info: + author: "Kevin Veen‑Birchenbach" + description: "Installs micro CLI text editor on Pacman‑based systems." + license: "CyMaIS NonCommercial License (CNCL)" + license_url: "https://s.veen.world/cncl" + company: | + Kevin Veen‑Birchenbach + Consulting & Coaching Solutions + https://www.veen.world + galaxy_tags: + - micro + - editor + - cli + repository: "https://github.com/kevinveenbirkenbach/cymais" + issue_tracker_url: "https://github.com/kevinveenbirkenbach/cymais/issues" + documentation: "https://github.com/kevinveenbirkenbach/cymais/tree/main/roles/desk-micro" + logo: + class: "fas fa-terminal" + min_ansible_version: "2.9" + platforms: + - name: Archlinux + versions: + - all +dependencies: [] diff --git a/roles/desk-micro/tasks/main.yml b/roles/desk-micro/tasks/main.yml new file mode 100644 index 00000000..f7e6aca7 --- /dev/null +++ b/roles/desk-micro/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: install micro + community.general.pacman: + name: + - micro + state: present diff --git a/roles/desk-micro/vars/main.yml b/roles/desk-micro/vars/main.yml new file mode 100644 index 00000000..c2a8761d --- /dev/null +++ b/roles/desk-micro/vars/main.yml @@ -0,0 +1,2 @@ +# Internal configuration +application_id: desk-micro diff --git a/roles/desk-neovim/README.md b/roles/desk-neovim/README.md new file mode 100644 index 00000000..f2d70c69 --- /dev/null +++ b/roles/desk-neovim/README.md @@ -0,0 +1,31 @@ +# Desk-neovim Role for Ansible + +## Overview +This role automates the installation of neovim, a CLI text editor, on Pacman‑based systems. It uses the `community.general.pacman` module to ensure the editor is installed and up to date. + +## Requirements +- Ansible 2.9 or higher +- Access to the Pacman package manager (e.g., Arch Linux and derivatives) + +## Role Variables +No additional role variables are required; this role solely manages the installation of the editor. + +## Dependencies +None. + +## Example Playbook +```yaml +- hosts: all + roles: + - desk-neovim +``` + +## Further Resources +- Official neovim documentation: + https://neovim.io/ + +## Contributing +Contributions are welcome! Please follow standard Ansible role conventions and best practices. + +## Other Resources +For more context on this role and its development, see the related ChatGPT conversation. diff --git a/roles/desk-neovim/meta/main.yml b/roles/desk-neovim/meta/main.yml new file mode 100644 index 00000000..6e14be9b --- /dev/null +++ b/roles/desk-neovim/meta/main.yml @@ -0,0 +1,25 @@ +--- +galaxy_info: + author: "Kevin Veen‑Birchenbach" + description: "Installs neovim CLI text editor on Pacman‑based systems." + license: "CyMaIS NonCommercial License (CNCL)" + license_url: "https://s.veen.world/cncl" + company: | + Kevin Veen‑Birchenbach + Consulting & Coaching Solutions + https://www.veen.world + galaxy_tags: + - neovim + - editor + - cli + repository: "https://github.com/kevinveenbirkenbach/cymais" + issue_tracker_url: "https://github.com/kevinveenbirkenbach/cymais/issues" + documentation: "https://github.com/kevinveenbirkenbach/cymais/tree/main/roles/desk-neovim" + logo: + class: "fab fa-vim" + min_ansible_version: "2.9" + platforms: + - name: Archlinux + versions: + - all +dependencies: [] diff --git a/roles/desk-neovim/tasks/main.yml b/roles/desk-neovim/tasks/main.yml new file mode 100644 index 00000000..1e9a4c39 --- /dev/null +++ b/roles/desk-neovim/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: install neovim + community.general.pacman: + name: + - neovim + state: present diff --git a/roles/desk-neovim/vars/main.yml b/roles/desk-neovim/vars/main.yml new file mode 100644 index 00000000..c0dea111 --- /dev/null +++ b/roles/desk-neovim/vars/main.yml @@ -0,0 +1,2 @@ +# Internal configuration +application_id: desk-neovim