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
|
## Verbosity Options
|
||||||
debug: False
|
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'
|
# Options are 'present' and 'latest'
|
||||||
horizon_package_state: "latest"
|
horizon_package_state: "latest"
|
||||||
|
horizon_pip_package_state: "latest"
|
||||||
|
|
||||||
## Toggle developer mode
|
## Toggle developer mode
|
||||||
horizon_developer_mode: false
|
horizon_developer_mode: false
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
command: "{{ horizon_bin }}/horizon-manage.py syncdb --noinput"
|
command: "{{ horizon_bin }}/horizon-manage.py syncdb --noinput"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ horizon_system_user_name }}"
|
become_user: "{{ horizon_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Register DB session cleanup cron
|
- name: Register DB session cleanup cron
|
||||||
cron:
|
cron:
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
- name: Install requires pip packages
|
- name: Install requires pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ horizon_requires_pip_packages | join(' ') }}"
|
name: "{{ horizon_requires_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ horizon_pip_package_state }}"
|
||||||
extra_args: "{{ pip_install_options_fact }}"
|
extra_args: "{{ pip_install_options_fact }}"
|
||||||
register: install_packages
|
register: install_packages
|
||||||
until: install_packages|success
|
until: install_packages|success
|
||||||
@ -126,7 +126,7 @@
|
|||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ horizon_pip_packages | join(' ') }}"
|
name: "{{ horizon_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ horizon_pip_package_state }}"
|
||||||
virtualenv: "{{ horizon_bin | dirname }}"
|
virtualenv: "{{ horizon_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options_fact }}"
|
extra_args: "{{ pip_install_options_fact }}"
|
||||||
|
@ -145,6 +145,7 @@
|
|||||||
command: "{{ horizon_bin }}/horizon-manage.py compilemessages"
|
command: "{{ horizon_bin }}/horizon-manage.py compilemessages"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ horizon_lib_dir }}/{{ item }}"
|
chdir: "{{ horizon_lib_dir }}/{{ item }}"
|
||||||
|
changed_when: false
|
||||||
with_items:
|
with_items:
|
||||||
- horizon
|
- horizon
|
||||||
- openstack_dashboard
|
- openstack_dashboard
|
||||||
@ -155,6 +156,7 @@
|
|||||||
command: "{{ item }}"
|
command: "{{ item }}"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ horizon_system_user_name }}"
|
become_user: "{{ horizon_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ horizon_bin }}/horizon-manage.py collectstatic --noinput"
|
- "{{ horizon_bin }}/horizon-manage.py collectstatic --noinput"
|
||||||
- "{{ horizon_bin }}/horizon-manage.py compress --force"
|
- "{{ horizon_bin }}/horizon-manage.py compress --force"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user