Add prefix vars to add options for lxc_build
Ansible doesn't have role scoped include_vars. Adding lxc_hosts_pip_install_options for the pip install build on centos and allow override with pip_install_options for other roles. Change-Id: I78fb85d44b5b0e1643bd07af3e15462c02041c89
This commit is contained in:
parent
d12c66fceb
commit
ed293e9569
@ -31,7 +31,7 @@
|
||||
pip:
|
||||
name: "{{ lxc_pip_packages | join(' ') }}"
|
||||
state: latest
|
||||
extra_args: "{{ pip_install_options|default('') }}"
|
||||
extra_args: "{{ pip_install_options|default('') }} {{ lxc_hosts_pip_install_options|default('') }}"
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
|
@ -83,7 +83,7 @@ lxc_cache_distro_packages:
|
||||
- wget
|
||||
- tar
|
||||
|
||||
pip_install_options: >
|
||||
lxc_hosts_pip_install_options: >
|
||||
--global-option=build_ext
|
||||
--global-option="-L/opt/lxc_embedded/x86_64-linux-gnu/"
|
||||
--global-option="-I/opt/lxc_embedded/include/"
|
||||
|
Loading…
Reference in New Issue
Block a user