Skip to content

Troubleshooting

Remove Submodule

Usually after a bad initial creation or weird sync state.

Remove from collection root

rm -rfv roles/{ROLE}
git rm -r roles/{ROLE}
rm -rf .git/modules/roles/{ROLE}
git config --remove-section submodule.roles/{ROLE}

Submodule is fully removed and ready to be re-added.

Reference:

Multiple configurations found for 'submodule.roles/{ROLE}'

.git/config mis-match against checked in submodules file .gitmodules.

Error

warning: {HASH}:.gitmodules, multiple configurations found for 'submodule.roles/{ROLE}'. Skipping second one!

Ensure files are the same Check both .git/config and .gitmodules are up to date and the same. Add to git commit if needed.

Reference:

no_log does not honor variable

no_log currently does not honor variable interpretation.

Use loop_control whenever possible or statically set no_log: true

- name: 'looping task with passwords'
  ansible.builtin.include_tasks: 'some_task.yml'
  loop: '{{ user_accounts }}'
  loop_control:  # Preferred - provides execution context.
    label: '{{ item.user }}'

- name: 'looping task with passwords'
  ansible.builtin.include_tasks: 'some_task.yml'
  no_log: true  # Strips all debugging feedback.
Reference: