whatnow.site/playbooks/localhost_setup.yaml
2025-01-22 18:53:32 -05:00

18 lines
386 B
YAML

---
- name: Localhost setup
hosts: 127.0.0.1
tasks:
- name: Install packages
ansible.builtin.package:
name: "{{ item }}"
state: present
with_items:
- yamllint
- ansible-lint
- name: Set up git pre-commit hooks
ansible.builtin.copy:
src: ../files/pre-commit
dest: ../.git/hooks/pre-commit
mode: 0755