MPS-IAC/init.playbook.yml

15 lines
370 B
YAML
Raw Permalink 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}}"
2022-09-15 11:57:33 -03:00
mode: 0755
2022-09-15 11:56:49 -03:00
dest: ".git/hooks/{{ item | split('/') | last | split('.') | first }}"
# Init submodules
# Install Githooks