Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump Change-Id: I59d55db358b67218202c4f74698caddc93accd83
This commit is contained in:
parent
c0abd22c49
commit
cecf28e355
@ -16,9 +16,10 @@
|
||||
## Verbosity Options
|
||||
debug: False
|
||||
|
||||
# Set the package install state for distribution packages
|
||||
# Set the package install state for distribution and pip packages
|
||||
# Options are 'present' and 'latest'
|
||||
horizon_package_state: "latest"
|
||||
horizon_pip_package_state: "latest"
|
||||
|
||||
## Toggle developer mode
|
||||
horizon_developer_mode: false
|
||||
|
@ -17,6 +17,7 @@
|
||||
command: "{{ horizon_bin }}/horizon-manage.py syncdb --noinput"
|
||||
become: yes
|
||||
become_user: "{{ horizon_system_user_name }}"
|
||||
changed_when: false
|
||||
|
||||
- name: Register DB session cleanup cron
|
||||
cron:
|
||||
|
@ -53,7 +53,7 @@
|
||||
- name: Install requires pip packages
|
||||
pip:
|
||||
name: "{{ horizon_requires_pip_packages | join(' ') }}"
|
||||
state: latest
|
||||
state: "{{ horizon_pip_package_state }}"
|
||||
extra_args: "{{ pip_install_options_fact }}"
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
@ -126,7 +126,7 @@
|
||||
- name: Install pip packages
|
||||
pip:
|
||||
name: "{{ horizon_pip_packages | join(' ') }}"
|
||||
state: latest
|
||||
state: "{{ horizon_pip_package_state }}"
|
||||
virtualenv: "{{ horizon_bin | dirname }}"
|
||||
virtualenv_site_packages: "no"
|
||||
extra_args: "{{ pip_install_options_fact }}"
|
||||
|
@ -145,6 +145,7 @@
|
||||
command: "{{ horizon_bin }}/horizon-manage.py compilemessages"
|
||||
args:
|
||||
chdir: "{{ horizon_lib_dir }}/{{ item }}"
|
||||
changed_when: false
|
||||
with_items:
|
||||
- horizon
|
||||
- openstack_dashboard
|
||||
@ -155,6 +156,7 @@
|
||||
command: "{{ item }}"
|
||||
become: yes
|
||||
become_user: "{{ horizon_system_user_name }}"
|
||||
changed_when: false
|
||||
with_items:
|
||||
- "{{ horizon_bin }}/horizon-manage.py collectstatic --noinput"
|
||||
- "{{ horizon_bin }}/horizon-manage.py compress --force"
|
||||
|
Loading…
Reference in New Issue
Block a user