Add GitHub Actions workflow for Ansible playbook validation#71
Open
michaelbarton wants to merge 2 commits intomasterfrom
Open
Add GitHub Actions workflow for Ansible playbook validation#71michaelbarton wants to merge 2 commits intomasterfrom
michaelbarton wants to merge 2 commits intomasterfrom
Conversation
Removes the dependency on the community.general collection which was producing a warning about not supporting the installed Ansible version. Uses npm install --prefix directly instead. https://claude.ai/code/session_01Vm5EEsQ5uFKoni6qWEDQd8
Runs the full playbook (minus macOS-only launch agents) on ubuntu-latest: syntax check then an actual apply. Installs Neovim, Python 3.11, and virtualenv so the neovim setup tasks (pip venv, Lazy sync, treesitter) can run too. https://claude.ai/code/session_01Vm5EEsQ5uFKoni6qWEDQd8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds CI/CD automation for validating the Ansible playbook and refactors the Neovim npm package installation to use a more portable approach.
Key Changes
New GitHub Actions workflow (
.github/workflows/ansible.yml):Refactored Neovim npm package installation (
ansible/tasks/neovim.yml):community.general.npmmodule withansible.builtin.commandfor better portabilitynpm installcommand with--prefixflag instead of module-specific parametersImplementation Details
The workflow creates a complete dotfiles environment in CI by:
~/.dotfiles.mise.tomland SSH config (excluded from version control)The npm installation change improves compatibility across different Ansible versions and environments by using the standard npm CLI directly.
https://claude.ai/code/session_01Vm5EEsQ5uFKoni6qWEDQd8