15 lines
370 B
YAML
15 lines
370 B
YAML
---
|
|
# On localhost
|
|
|
|
- hosts: localhost
|
|
tasks:
|
|
- shell: "git submodule init"
|
|
- shell: "git submodule update --remote --merge"
|
|
- with_fileglob: Hooks/*.j2.*
|
|
ansible.builtin.copy:
|
|
src: "{{item}}"
|
|
mode: 0755
|
|
dest: ".git/hooks/{{ item | split('/') | last | split('.') | first }}"
|
|
|
|
# Init submodules
|
|
# Install Githooks |