Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump Change-Id: If3a68d50f07711b4dff101dda1c5c997e46e71d2
This commit is contained in:
parent
07f6339adf
commit
e718101366
@ -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'
|
||||||
glance_package_state: "latest"
|
glance_package_state: "latest"
|
||||||
|
glance_pip_package_state: "latest"
|
||||||
|
|
||||||
glance_git_repo: https://git.openstack.org/openstack/glance
|
glance_git_repo: https://git.openstack.org/openstack/glance
|
||||||
glance_git_install_branch: master
|
glance_git_install_branch: master
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
- Restart glance services
|
- Restart glance 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 glance services
|
- Restart glance services
|
||||||
|
|
||||||
|
@ -17,8 +17,10 @@
|
|||||||
command: "{{ glance_bin }}/glance-manage db_sync"
|
command: "{{ glance_bin }}/glance-manage db_sync"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ glance_system_user_name }}"
|
become_user: "{{ glance_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Load glance metadata definitions
|
- name: Load glance metadata definitions
|
||||||
command: "{{ glance_bin }}/glance-manage db_load_metadefs {{ glance_etc_dir }}/metadefs"
|
command: "{{ glance_bin }}/glance-manage db_load_metadefs {{ glance_etc_dir }}/metadefs"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ glance_system_user_name }}"
|
become_user: "{{ glance_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
- name: Install requires pip packages
|
- name: Install requires pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ glance_requires_pip_packages | join(' ') }}"
|
name: "{{ glance_requires_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ glance_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
|
||||||
@ -129,7 +129,7 @@
|
|||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ glance_pip_packages | join(' ') }}"
|
name: "{{ glance_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ glance_pip_package_state }}"
|
||||||
virtualenv: "{{ glance_bin | dirname }}"
|
virtualenv: "{{ glance_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options_fact }}"
|
extra_args: "{{ pip_install_options_fact }}"
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user