Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump Change-Id: I3aa90b44d174bd806f783198183c5092ab1297e4
This commit is contained in:
parent
d56ab2662e
commit
f27398974a
@ -20,9 +20,10 @@ gnocchi_identity_only: False
|
|||||||
#: Enable for debug logging level
|
#: Enable for debug logging level
|
||||||
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'
|
||||||
gnocchi_package_state: "latest"
|
gnocchi_package_state: "latest"
|
||||||
|
gnocchi_pip_package_state: "latest"
|
||||||
|
|
||||||
# Toggle keystone authentication for gnocchi
|
# Toggle keystone authentication for gnocchi
|
||||||
gnocchi_keystone_auth: no
|
gnocchi_keystone_auth: no
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
- name: Register rados module path
|
- name: Register rados module path
|
||||||
command: python -c 'import rados; print rados.__file__'
|
command: python -c 'import rados; print rados.__file__'
|
||||||
|
changed_when: false
|
||||||
register: rados_module_path
|
register: rados_module_path
|
||||||
|
|
||||||
- name: Link rados module into the venv
|
- name: Link rados module into the venv
|
||||||
|
@ -17,3 +17,4 @@
|
|||||||
command: "{{ gnocchi_bin }}/gnocchi-upgrade {{ gnocchi_db_sync_options }}"
|
command: "{{ gnocchi_bin }}/gnocchi-upgrade {{ gnocchi_db_sync_options }}"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ gnocchi_system_user_name }}"
|
become_user: "{{ gnocchi_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
|
@ -27,10 +27,10 @@
|
|||||||
- Restart Apache
|
- Restart Apache
|
||||||
|
|
||||||
- name: Reload init scripts
|
- name: Reload init scripts
|
||||||
shell: |
|
command: initctl reload-configuration
|
||||||
initctl reload-configuration
|
|
||||||
when: upstart_init | changed
|
when: upstart_init | changed
|
||||||
notify:
|
notify:
|
||||||
- Restart Gnocchi API services
|
- Restart Gnocchi API services
|
||||||
- Restart Gnocchi extra services
|
- Restart Gnocchi extra services
|
||||||
- Restart Apache
|
- Restart Apache
|
||||||
|
changed_when: false
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
- name: Install required pip packages
|
- name: Install required pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ gnocchi_required_pip_packages | join(' ') }}"
|
name: "{{ gnocchi_required_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ gnocchi_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
|
||||||
@ -135,7 +135,7 @@
|
|||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ gnocchi_pip_packages | join(' ') }}"
|
name: "{{ gnocchi_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ gnocchi_pip_package_state }}"
|
||||||
virtualenv: "{{ gnocchi_bin | dirname }}"
|
virtualenv: "{{ gnocchi_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options_fact }}"
|
extra_args: "{{ pip_install_options_fact }}"
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
- name: Check init system
|
- name: Check init system
|
||||||
command: cat /proc/1/comm
|
command: cat /proc/1/comm
|
||||||
|
changed_when: false
|
||||||
register: _pid1_name
|
register: _pid1_name
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
Loading…
Reference in New Issue
Block a user