Skip to content

Commit 380145e

Browse files
simonoclaude
andcommitted
ansible: sync submodules after pull
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b9197b0 commit 380145e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

playbook.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
changed_when: "'Already up to date.' not in git_pull.stdout"
1212
tags: always
1313

14+
- name: sync submodules
15+
ansible.builtin.command:
16+
cmd: git submodule update --init
17+
chdir: "{{ playbook_dir }}"
18+
register: git_submodule
19+
changed_when: git_submodule.stdout | length > 0
20+
tags: always
21+
1422
- name: find component tasks
1523
ansible.builtin.find:
1624
paths: "{{ playbook_dir }}"

0 commit comments

Comments
 (0)