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:
Logan V 2016-11-02 12:22:59 +00:00
parent c0abd22c49
commit cecf28e355
4 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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:

View File

@ -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 }}"

View File

@ -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"