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:
Jesse Pretorius 2016-11-04 17:14:53 +00:00
parent 0dd25b362d
commit 0997138c0e
5 changed files with 8 additions and 5 deletions

View File

@ -16,9 +16,10 @@
## Verbosity Options
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'
cloudkitty_package_state: "latest"
cloudkitty_pip_package_state: "latest"
cloudkitty_username: cloudkitty

View File

@ -19,8 +19,7 @@
- Restart cloudkitty services
- name: Reload upstart init scripts
shell: |
initctl reload-configuration
command: initctl reload-configuration
notify:
- Restart cloudkitty services

View File

@ -45,6 +45,7 @@
command: "{{ cloudkitty_bin }}/cloudkitty-dbsync upgrade"
become: yes
become_user: "{{ cloudkitty_system_user_name }}"
changed_when: false
tags:
- cloudkitty-db-sync
- cloudkitty-setup
@ -54,6 +55,7 @@
command: "{{ cloudkitty_bin }}/cloudkitty-storage-init"
become: yes
become_user: "{{ cloudkitty_system_user_name }}"
changed_when: false
tags:
- cloudkitty-db-sync
- cloudkitty-setup

View File

@ -42,7 +42,7 @@
- name: Install requires pip packages
pip:
name: "{{ cloudkitty_requires_pip_packages | join(' ') }}"
state: latest
state: "{{ cloudkitty_pip_package_state }}"
extra_args: >-
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
{{ pip_install_options | default('') }}
@ -139,7 +139,7 @@
- name: Install pip packages
pip:
name: "{{ cloudkitty_pip_packages | join(' ') }}"
state: latest
state: "{{ cloudkitty_pip_package_state }}"
virtualenv: "{{ cloudkitty_bin | dirname }}"
virtualenv_site_packages: "no"
extra_args: >-

View File

@ -28,6 +28,7 @@
- name: Check init system
command: cat /proc/1/comm
changed_when: false
register: _pid1_name
tags:
- always