diff --git a/ansible/roles/ironic-enrolment/README.md b/ansible/roles/ironic-enrolment/README.md index dacf458..3b66817 100644 --- a/ansible/roles/ironic-enrolment/README.md +++ b/ansible/roles/ironic-enrolment/README.md @@ -11,7 +11,7 @@ Requirements the shell environment. These can be sourced from an OpenStack RC file, for example. -- The `virsh` command-line tool present at `/bin/virsh`. +- The `virsh` command-line tool present at `/usr/bin/virsh`. Role Variables -------------- diff --git a/ansible/roles/ironic-enrolment/tasks/node.yml b/ansible/roles/ironic-enrolment/tasks/node.yml index 78545ce..f87398d 100644 --- a/ansible/roles/ironic-enrolment/tasks/node.yml +++ b/ansible/roles/ironic-enrolment/tasks/node.yml @@ -12,9 +12,7 @@ # The output format of this command gives two lines of header, followed by # (for each vNIC): # - # The VMs will have been created with the virt module, using become: true. - # This targets /bin/virsh rather than /usr/bin/virsh. - command: /bin/virsh domiflist '{{ node.name }}' + command: /usr/bin/virsh domiflist '{{ node.name }}' register: iflist_res changed_when: false become: true