Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump Change-Id: I5d38c3eb0f7fdf98d9114e692cad9ad36127ac44
This commit is contained in:
parent
b35fd0759c
commit
b621c711e8
@ -13,9 +13,10 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# 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'
|
||||||
cinder_package_state: "latest"
|
cinder_package_state: "latest"
|
||||||
|
cinder_pip_package_state: "latest"
|
||||||
|
|
||||||
cinder_git_repo: https://git.openstack.org/openstack/cinder
|
cinder_git_repo: https://git.openstack.org/openstack/cinder
|
||||||
cinder_git_install_branch: master
|
cinder_git_install_branch: master
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
- Restart cinder services
|
- Restart cinder services
|
||||||
|
|
||||||
- name: Reload upstart init scripts
|
- name: Reload upstart init scripts
|
||||||
shell: |
|
command: initctl reload-configuration
|
||||||
initctl reload-configuration
|
changed_when: false
|
||||||
notify:
|
notify:
|
||||||
- Restart cinder services
|
- Restart cinder services
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
{{ cinder_bin }}/cinder {{ keystone_service_adminuri_insecure | bool | ternary('--insecure','') }} type-key "{{ item.key }}" set volume_backend_name="{{ item.value.volume_backend_name }}"
|
{{ cinder_bin }}/cinder {{ keystone_service_adminuri_insecure | bool | ternary('--insecure','') }} type-key "{{ item.key }}" set volume_backend_name="{{ item.value.volume_backend_name }}"
|
||||||
fi
|
fi
|
||||||
with_dict: "{{ cinder_backends|default({}) }}"
|
with_dict: "{{ cinder_backends|default({}) }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Add extra cinder volume types
|
- name: Add extra cinder volume types
|
||||||
shell: |
|
shell: |
|
||||||
|
@ -17,3 +17,4 @@
|
|||||||
command: "{{ cinder_bin }}/cinder-manage db sync"
|
command: "{{ cinder_bin }}/cinder-manage db sync"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ cinder_system_user_name }}"
|
become_user: "{{ cinder_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
- name: Install requires pip packages
|
- name: Install requires pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ cinder_requires_pip_packages | join(' ') }}"
|
name: "{{ cinder_requires_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ cinder_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
|
||||||
@ -127,7 +127,7 @@
|
|||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ cinder_pip_packages | join(' ') }}"
|
name: "{{ cinder_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ cinder_pip_package_state }}"
|
||||||
virtualenv: "{{ cinder_bin | dirname }}"
|
virtualenv: "{{ cinder_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options_fact }}"
|
extra_args: "{{ pip_install_options_fact }}"
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
{{ cinder_bin }}/cinder qos-list | grep {{ item.name }} || \
|
{{ cinder_bin }}/cinder qos-list | grep {{ item.name }} || \
|
||||||
{{ cinder_bin }}/cinder qos-create {{ item.name }}\
|
{{ cinder_bin }}/cinder qos-create {{ item.name }}\
|
||||||
{% for k,v in item.options.iteritems() %} {{ k }}={{ v }}{% endfor %}
|
{% for k,v in item.options.iteritems() %} {{ k }}={{ v }}{% endfor %}
|
||||||
with_items: cinder_qos_specs
|
with_items: "{{ cinder_qos_specs }}"
|
||||||
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- cinder-qos
|
- cinder-qos
|
||||||
|
|
||||||
@ -31,7 +32,7 @@
|
|||||||
$({{ cinder_bin }}/cinder qos-list | grep {{ item.name }} | grep -oE "{{ _UUID_regex }}") \
|
$({{ cinder_bin }}/cinder qos-list | grep {{ item.name }} | grep -oE "{{ _UUID_regex }}") \
|
||||||
$({{ cinder_bin }}/cinder type-list | grep {{ vtype }} | grep -oE "{{ _UUID_regex }}")
|
$({{ cinder_bin }}/cinder type-list | grep {{ vtype }} | grep -oE "{{ _UUID_regex }}")
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
with_items: cinder_qos_specs
|
with_items: "{{ cinder_qos_specs }}"
|
||||||
when:
|
when:
|
||||||
- item.cinder_volume_types is defined
|
- item.cinder_volume_types is defined
|
||||||
tags:
|
tags:
|
||||||
|
@ -27,6 +27,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