Follow ups to venv
Follow ups to Icd60aca084323cede944ee261d2cf5941b320e4b. Change-Id: Id25a8b35ad42ee7f095098c210bc14926aec18ed
This commit is contained in:
parent
3ced4bdb34
commit
d0ded32016
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Create Tenks venv
|
- name: Create Tenks venv
|
||||||
hosts: all
|
hosts: localhost:hypervisors
|
||||||
tags:
|
tags:
|
||||||
- host-setup
|
- host-setup
|
||||||
tasks:
|
tasks:
|
||||||
@ -78,7 +78,6 @@
|
|||||||
include_role:
|
include_role:
|
||||||
name: virtualbmc-daemon
|
name: virtualbmc-daemon
|
||||||
vars:
|
vars:
|
||||||
selinux_enabled: "{{ ansible_facts.selinux.status | default('disabled') == 'enabled' }}"
|
|
||||||
vbmcd_virtualenv_path: "{{ virtualenv_path }}"
|
vbmcd_virtualenv_path: "{{ virtualenv_path }}"
|
||||||
vbmcd_python_upper_constraints_url: >-
|
vbmcd_python_upper_constraints_url: >-
|
||||||
{{ python_upper_constraints_url }}
|
{{ python_upper_constraints_url }}
|
||||||
|
@ -76,8 +76,11 @@
|
|||||||
become: true
|
become: true
|
||||||
command: "restorecon -r {{ vbmcd_virtualenv_path }}/bin"
|
command: "restorecon -r {{ vbmcd_virtualenv_path }}/bin"
|
||||||
when: sefcontext.changed
|
when: sefcontext.changed
|
||||||
|
changed_when: true
|
||||||
|
|
||||||
when: selinux_enabled and vbmcd_virtualenv_path
|
when:
|
||||||
|
- ansible_facts.selinux.status | default('disabled') == 'enabled'
|
||||||
|
- vbmcd_virtualenv_path
|
||||||
|
|
||||||
- name: Ensure Virtual BMC systemd service is configured
|
- name: Ensure Virtual BMC systemd service is configured
|
||||||
template:
|
template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user