Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump Change-Id: I36f5b951b5dcaa52e35079f32e98f2aae94e2df0
This commit is contained in:
@@ -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'
|
||||||
cloudkitty_package_state: "latest"
|
cloudkitty_package_state: "latest"
|
||||||
|
cloudkitty_pip_package_state: "latest"
|
||||||
|
|
||||||
cloudkitty_username: cloudkitty
|
cloudkitty_username: cloudkitty
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,7 @@
|
|||||||
- Restart cloudkitty services
|
- Restart cloudkitty services
|
||||||
|
|
||||||
- name: Reload upstart init scripts
|
- name: Reload upstart init scripts
|
||||||
shell: |
|
command: initctl reload-configuration
|
||||||
initctl reload-configuration
|
|
||||||
notify:
|
notify:
|
||||||
- Restart cloudkitty services
|
- Restart cloudkitty services
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
command: "{{ cloudkitty_bin }}/cloudkitty-dbsync upgrade"
|
command: "{{ cloudkitty_bin }}/cloudkitty-dbsync upgrade"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ cloudkitty_system_user_name }}"
|
become_user: "{{ cloudkitty_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- cloudkitty-db-sync
|
- cloudkitty-db-sync
|
||||||
- cloudkitty-setup
|
- cloudkitty-setup
|
||||||
@@ -54,6 +55,7 @@
|
|||||||
command: "{{ cloudkitty_bin }}/cloudkitty-storage-init"
|
command: "{{ cloudkitty_bin }}/cloudkitty-storage-init"
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ cloudkitty_system_user_name }}"
|
become_user: "{{ cloudkitty_system_user_name }}"
|
||||||
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- cloudkitty-db-sync
|
- cloudkitty-db-sync
|
||||||
- cloudkitty-setup
|
- cloudkitty-setup
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
- name: Install requires pip packages
|
- name: Install requires pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ cloudkitty_requires_pip_packages | join(' ') }}"
|
name: "{{ cloudkitty_requires_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ cloudkitty_pip_package_state }}"
|
||||||
extra_args: >-
|
extra_args: >-
|
||||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||||
{{ pip_install_options | default('') }}
|
{{ pip_install_options | default('') }}
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
- name: Install pip packages
|
- name: Install pip packages
|
||||||
pip:
|
pip:
|
||||||
name: "{{ cloudkitty_pip_packages | join(' ') }}"
|
name: "{{ cloudkitty_pip_packages | join(' ') }}"
|
||||||
state: latest
|
state: "{{ cloudkitty_pip_package_state }}"
|
||||||
virtualenv: "{{ cloudkitty_bin | dirname }}"
|
virtualenv: "{{ cloudkitty_bin | dirname }}"
|
||||||
virtualenv_site_packages: "no"
|
virtualenv_site_packages: "no"
|
||||||
extra_args: >-
|
extra_args: >-
|
||||||
|
|||||||
@@ -28,6 +28,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
|
||||||
|
|||||||
Reference in New Issue
Block a user