MPS-IAC/init.playbook.yml

14 lines
351 B
YAML
Raw Normal View History

2022-09-15 11:56:49 -03:00
---
# On localhost
- hosts: localhost
tasks:
- shell: "git submodule init"
- shell: "git submodule update --remote --merge"
- with_fileglob: Hooks/*.j2.*
ansible.builtin.copy:
src: "{{item}}"
dest: ".git/hooks/{{ item | split('/') | last | split('.') | first }}"
# Init submodules
# Install Githooks