Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump Change-Id: Ia5d254d43f9541c82c700080aafee276dafad0a7
This commit is contained in:
parent
59b855a8a4
commit
6361372415
@ -19,9 +19,10 @@ nova_ceilometer_enabled: False
|
|||||||
## 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'
|
||||||
nova_package_state: "latest"
|
nova_package_state: "latest"
|
||||||
|
nova_pip_package_state: "latest"
|
||||||
|
|
||||||
nova_git_repo: https://git.openstack.org/openstack/nova
|
nova_git_repo: https://git.openstack.org/openstack/nova
|
||||||
nova_git_install_branch: master
|
nova_git_install_branch: master
|
||||||
|
@ -25,8 +25,7 @@
|
|||||||
- Restart nova services
|
- Restart nova services
|
||||||
|
|
||||||
- name: Reload upstart init scripts
|
- name: Reload upstart init scripts
|
||||||
shell: |
|
command: initctl reload-configuration
|
||||||
initctl reload-configuration
|
|
||||||
notify:
|
notify:
|
||||||
- Restart nova services
|
- Restart nova services
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
# Detect whether the init system is upstart of systemd.
|
# Detect whether the init system is upstart of systemd.
|
||||||
- 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
|
||||||
@ -37,7 +38,8 @@
|
|||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
|
||||||
- fail: msg="Unsupported Virt Type Provided {{ nova_supported_virt_types }}"
|
- name: Fail when virt type is unsupported
|
||||||
|
fail: msg="Unsupported Virt Type Provided {{ nova_supported_virt_types }}"
|
||||||
when:
|
when:
|
||||||
- nova_virt_type is defined
|
- nova_virt_type is defined
|
||||||
- nova_virt_type not in nova_supported_virt_types
|
- nova_virt_type not in nova_supported_virt_types
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
- name: Install pip packages (venv)
|
- name: Install pip packages (venv)
|
||||||
pip:
|
pip:
|
||||||
name: "{{ nova_compute_ironic_pip_packages | join(' ') }}"
|
name: "{{ nova_compute_ironic_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ nova_pip_package_state }}"
|
||||||
virtualenv: "{{ nova_bin | dirname }}"
|
virtualenv: "{{ nova_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options_fact|default('') }}"
|
extra_args: "{{ pip_install_options_fact|default('') }}"
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
- nova-libvirt
|
- nova-libvirt
|
||||||
|
|
||||||
- name: Ensure kvm permissions
|
- name: Ensure kvm permissions
|
||||||
shell: "udevadm trigger"
|
command: "udevadm trigger"
|
||||||
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- nova-kvm
|
- nova-kvm
|
||||||
|
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
register: _qemu_save_dir
|
register: _qemu_save_dir
|
||||||
|
|
||||||
- name: Check if the qemu save directory is empty
|
- name: Check if the qemu save directory is empty
|
||||||
shell: 'ls -1A /var/lib/libvirt/qemu/save'
|
command: 'ls -1A /var/lib/libvirt/qemu/save'
|
||||||
|
changed_when: false
|
||||||
register: _qemu_save_dir_contents
|
register: _qemu_save_dir_contents
|
||||||
|
|
||||||
- name: Move the existing save directory to nova_libvirt_save_path
|
- name: Move the existing save directory to nova_libvirt_save_path
|
||||||
@ -48,7 +49,7 @@
|
|||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ nova_compute_pip_packages | join(' ') }}"
|
name: "{{ nova_compute_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ nova_pip_package_state }}"
|
||||||
virtualenv: "{{ nova_bin | dirname }}"
|
virtualenv: "{{ nova_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options|default('') }}"
|
extra_args: "{{ pip_install_options|default('') }}"
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
- name: Check for libvirt default network
|
- name: Check for libvirt default network
|
||||||
shell: "virsh net-list | awk '/default/'"
|
shell: "virsh net-list | awk '/default/'"
|
||||||
|
changed_when: false
|
||||||
register: default_net
|
register: default_net
|
||||||
tags:
|
tags:
|
||||||
- nova-kvm
|
- nova-kvm
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
- name: Install pip packages (venv)
|
- name: Install pip packages (venv)
|
||||||
pip:
|
pip:
|
||||||
name: "{{ nova_compute_lxd_pip_packages | join(' ') }}"
|
name: "{{ nova_compute_lxd_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ nova_pip_package_state }}"
|
||||||
virtualenv: "{{ nova_bin | dirname }}"
|
virtualenv: "{{ nova_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options_fact|default('') }}"
|
extra_args: "{{ pip_install_options_fact|default('') }}"
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
- nova-powervm
|
- nova-powervm
|
||||||
|
|
||||||
- name: Ensure powervm permissions
|
- name: Ensure powervm permissions
|
||||||
shell: "udevadm trigger"
|
command: "udevadm trigger"
|
||||||
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- nova-powervm
|
- nova-powervm
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
tags:
|
tags:
|
||||||
- nova-apt-packages
|
- nova-apt-packages
|
||||||
- nova-compute-powervm-apt-packages
|
- nova-compute-powervm-apt-packages
|
||||||
|
# do not trigger ANSIBLE0016
|
||||||
|
- skip_ansible_lint
|
||||||
|
|
||||||
- name: Install apt packages
|
- name: Install apt packages
|
||||||
apt:
|
apt:
|
||||||
@ -72,6 +74,7 @@
|
|||||||
|
|
||||||
- name: Register pypowervm module path (venv)
|
- name: Register pypowervm module path (venv)
|
||||||
command: python -c 'import pypowervm; print pypowervm.__file__'
|
command: python -c 'import pypowervm; print pypowervm.__file__'
|
||||||
|
changed_when: false
|
||||||
register: pypowervm_module_path
|
register: pypowervm_module_path
|
||||||
tags:
|
tags:
|
||||||
- nova-powervm-libs
|
- nova-powervm-libs
|
||||||
@ -88,7 +91,7 @@
|
|||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ nova_compute_powervm_pip_packages | join(' ') }}"
|
name: "{{ nova_compute_powervm_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ nova_pip_package_state }}"
|
||||||
virtualenv: "{{ nova_bin | dirname }}"
|
virtualenv: "{{ nova_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options|default('') }}"
|
extra_args: "{{ pip_install_options|default('') }}"
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ nova_novnc_pip_packages | join(' ') }}"
|
name: "{{ nova_novnc_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ nova_pip_package_state }}"
|
||||||
virtualenv: "{{ nova_bin | dirname }}"
|
virtualenv: "{{ nova_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options|default('') }}"
|
extra_args: "{{ pip_install_options|default('') }}"
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
- name: Prepare combined nova-console SSL and CA certs
|
- name: Prepare combined nova-console SSL and CA certs
|
||||||
local_action: command cat {{ nova_console_user_ssl_cert }} {{ nova_console_user_ssl_ca_cert is defined | ternary(nova_console_user_ssl_ca_cert,'') }}
|
local_action: command cat {{ nova_console_user_ssl_cert }} {{ nova_console_user_ssl_ca_cert is defined | ternary(nova_console_user_ssl_ca_cert,'') }}
|
||||||
|
changed_when: false
|
||||||
register: nova_console_user_ssl_combined
|
register: nova_console_user_ssl_combined
|
||||||
|
|
||||||
- name: Drop user provided ssl cert and key
|
- name: Drop user provided ssl cert and key
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
command: "{{ nova_bin }}/nova-manage db sync"
|
command: "{{ nova_bin }}/nova-manage db sync"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ nova_system_user_name }}"
|
become_user: "{{ nova_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- nova-db-setup
|
- nova-db-setup
|
||||||
- nova-setup
|
- nova-setup
|
||||||
@ -26,6 +27,7 @@
|
|||||||
command: "{{ nova_bin }}/nova-manage api_db sync"
|
command: "{{ nova_bin }}/nova-manage api_db sync"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ nova_system_user_name }}"
|
become_user: "{{ nova_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- nova-db-setup
|
- nova-db-setup
|
||||||
- nova-setup
|
- nova-setup
|
||||||
@ -35,6 +37,7 @@
|
|||||||
command: "{{ nova_bin }}/nova-manage db online_data_migrations"
|
command: "{{ nova_bin }}/nova-manage db online_data_migrations"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ nova_system_user_name }}"
|
become_user: "{{ nova_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- nova-db-setup
|
- nova-db-setup
|
||||||
- nova-setup
|
- nova-setup
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
- name: Install requires pip packages
|
- name: Install requires pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ nova_requires_pip_packages | join(' ') }}"
|
name: "{{ nova_requires_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ nova_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
|
||||||
@ -157,7 +157,7 @@
|
|||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ nova_pip_packages | join(' ') }}"
|
name: "{{ nova_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ nova_pip_package_state }}"
|
||||||
virtualenv: "{{ nova_bin | dirname }}"
|
virtualenv: "{{ nova_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: "{{ pip_install_options_fact }}"
|
extra_args: "{{ pip_install_options_fact }}"
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Get CPU info content and store as var
|
- name: Get CPU info content and store as var
|
||||||
shell: cat /proc/cpuinfo
|
command: cat /proc/cpuinfo
|
||||||
register: cpuinfo_contents
|
register: cpuinfo_contents
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user