Create symlink for ironic-rootwrap when using venv
Without this fix, ironic-rootwrap command won't be found in ironic user default PATH Change-Id: I405add3ded3035c732a8227acda2437bf692cc95
This commit is contained in:
parent
f04005a0fd
commit
6f27563d78
@ -35,6 +35,16 @@
|
|||||||
owner=ironic
|
owner=ironic
|
||||||
group=ironic
|
group=ironic
|
||||||
mode=0640
|
mode=0640
|
||||||
|
- name: "Symlinks from venv if using"
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
path: "{{ ironic_rootwrap_dir }}/{{ item | basename }}"
|
||||||
|
src: "{{ item }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
when: enable_venv | bool == true
|
||||||
|
with_items:
|
||||||
|
- "{{ bifrost_venv_dir }}/bin/ironic-rootwrap"
|
||||||
- name: "Set sudoers for rootwrap"
|
- name: "Set sudoers for rootwrap"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/sudoers
|
dest: /etc/sudoers
|
||||||
|
Loading…
Reference in New Issue
Block a user