Am Freitag, 3. Januar 2020 20:36:34 UTC+1 schrieb Mauricio Tavares: > > What is the equivalent of [1] > > git submodule update --init > > using the git [2] module? Would "update: yes" (the default) as in > > - git: > repo: 'https://foosball.example.org/path/to/repo.git' > dest: /srv/checkout > update: yes > > suffice? > > [1] https://git-scm.com/docs/git-submodule > [2] https://docs.ansible.com/ansible/latest/modules/git_module.html >
Sounds reasonable to me. The important part for submodules is the "recursive" parameter which is by default set to yes. Whether the git module implicitly uses --init on the first run I have never actually tried. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8c5b2167-4b67-4406-ab33-1401fed3e021%40googlegroups.com.
