Merge pull request #25 from jovial/usr-bin

Use /usr/bin/virsh instead of /bin/virsh
This commit is contained in:
jovial 2018-10-03 17:40:30 +01:00 committed by GitHub
commit 7a04432226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -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
--------------

View File

@ -12,9 +12,7 @@
# The output format of this command gives two lines of header, followed by
# (for each vNIC):
# <name> <type> <source interface> <model> <MAC>
# 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