tenks/ansible/roles/virtualbmc-domain/tasks/main.yml
Mark Goddard 1b01c94f15 Fix issue with VirtualBMC client path
If SELinux is enforcing we install VirtualBMC as a system Python
package. The module is executed using become, and root typically doesn't
have /usr/local/bin/ in it's PATH.

Use an absolute path to resolve this issue.

Change-Id: Ia278518d2c55351c55abca1122e7cad7179ad4d8
2020-04-08 12:43:07 +01:00

14 lines
550 B
YAML

---
- name: Ensure domain {{ vbmc_domain }} is configured
virtualbmc_domain:
domain: "{{ vbmc_domain }}"
ipmi_address: "{{ vbmc_ipmi_address }}"
ipmi_port: "{{ vbmc_ipmi_port }}"
ipmi_username: "{{ vbmc_ipmi_username }}"
ipmi_password: "{{ vbmc_ipmi_password }}"
libvirt_uri: "{{ vbmc_libvirt_uri | default(omit, true) }}"
log_directory: "{{ vbmc_log_directory | default(omit, true) }}"
state: "{{ vbmc_state }}"
vbmc_path: "{{ vbmc_virtualenv_path | default('/usr/local', true) ~ '/bin/vbmc' }}"
become: true