- name: Include dependency 'pkgmgr' include_role: name: pkgmgr when: run_once_pkgmgr is not defined - name: update pkgmgr shell: | source ~/.venvs/pkgmgr/bin/activate pkgmgr update pkgmgr register: pkgmgr_update changed_when: "'already up to date' not in (pkgmgr_update.stdout | lower)"