diff --git a/lib/ansible/modules/extras/cloud/lxd/lxd_container.py b/lib/ansible/modules/extras/cloud/lxd/lxd_container.py index 77fa7bc140..12a6477521 100644 --- a/lib/ansible/modules/extras/cloud/lxd/lxd_container.py +++ b/lib/ansible/modules/extras/cloud/lxd/lxd_container.py @@ -170,7 +170,7 @@ EXAMPLES = """ - name: check python is installed in container delegate_to: mycontainer - raw: dpkg-query -W -f='${Status}' python + raw: dpkg -s python register: python_install_check failed_when: python_install_check.rc not in [0, 1] changed_when: false