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:
Olivier Bourdon 2018-08-07 12:22:10 +02:00
parent f04005a0fd
commit 6f27563d78
1 changed files with 10 additions and 0 deletions

View File

@ -35,6 +35,16 @@
owner=ironic
group=ironic
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"
lineinfile:
dest: /etc/sudoers