Skip to content

Commit d2bd08b

Browse files
committed
fix ansible lint errors
1 parent e9a113d commit d2bd08b

14 files changed

Lines changed: 28 additions & 31 deletions

File tree

ansible/diagnostic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
killbill_account: "{{ killbill_account | default('') }}"
1919
bundles_dir: "{{ kb_plugins_dir }}"
2020
log_dir: "{{ catalina_base }}/logs"
21-
tags: diagnostics
21+
tags: diagnostics

ansible/roles/common/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set_fact: ansible_ruby_interpreter="{{ kpm_path }}/lib/ruby/bin/ruby"
44
tags: common
55
# noqa: var-naming[no-role-prefix]
6-
# Required for ansible-lint: variable must stay named 'ansible_ruby_interpreter' for Ansible to pick it up
6+
# Required for ansible-lint: variable must stay named 'ansible_ruby_interpreter' for Ansible to pick it up

ansible/roles/kaui/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
owner: "{{ tomcat_owner }}"
2222
group: "{{ tomcat_group }}"
2323
# If the file already exist, don't clobber it
24-
force: no
24+
force: false
2525
tags: kpm-install
2626

2727
# Generate Kaui-specific Tomcat configuration files based on environment variables
@@ -34,7 +34,7 @@
3434
owner: "{{ tomcat_owner }}"
3535
group: "{{ tomcat_group }}"
3636
# If the files already exist, don't clobber them
37-
force: no
37+
force: false
3838
with_items:
3939
- src: kaui/conf
4040
name: setenv2.sh
@@ -68,7 +68,7 @@
6868
path: "{{ kaui_install_dir }}"
6969
owner: "{{ tomcat_owner }}"
7070
group: "{{ tomcat_group }}"
71-
recurse: yes
71+
recurse: true
7272
tags: kpm-install
7373

7474
- name: Create ROOT directory to unarchive the WAR
@@ -108,7 +108,7 @@
108108
ansible.builtin.file:
109109
path: "{{ catalina_base }}/{{ kaui_webapps }}/ROOT"
110110
state: directory
111-
recurse: yes
111+
recurse: true
112112
owner: "{{ tomcat_owner }}"
113113
group: "{{ tomcat_group }}"
114114
mode: u=rwX,g=rX,o=rX

ansible/roles/killbill/tasks/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
owner: "{{ tomcat_owner }}"
2323
group: "{{ tomcat_group }}"
2424
# If the files already exist, don't clobber them
25-
force: no
25+
force: false
2626
with_items:
2727
- name: killbill.properties
2828
tags: kpm-install
@@ -36,7 +36,7 @@
3636
owner: "{{ tomcat_owner }}"
3737
group: "{{ tomcat_group }}"
3838
# If the file already exist, don't clobber it
39-
force: no
39+
force: false
4040
tags: kpm-install
4141

4242
# Generate Kill Bill-specific Tomcat configuration files based on environment variables
@@ -49,7 +49,7 @@
4949
owner: "{{ tomcat_owner }}"
5050
group: "{{ tomcat_group }}"
5151
# If the files already exist, don't clobber them
52-
force: no
52+
force: false
5353
with_items:
5454
- src: killbill/conf
5555
name: setenv2.sh
@@ -83,7 +83,7 @@
8383
path: "{{ kb_install_dir }}"
8484
owner: "{{ tomcat_owner }}"
8585
group: "{{ tomcat_group }}"
86-
recurse: yes
86+
recurse: true
8787
tags: kpm-install
8888

8989
- name: Create ROOT directory to unarchive the WAR
@@ -123,7 +123,7 @@
123123
ansible.builtin.file:
124124
path: "{{ catalina_base }}/{{ kb_webapps }}/ROOT"
125125
state: directory
126-
recurse: yes
126+
recurse: true
127127
owner: "{{ tomcat_owner }}"
128128
group: "{{ tomcat_group }}"
129129
mode: u=rwX,g=rX,o=rX

ansible/roles/kpm/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- name: Download kpm release metadata
1111
ansible.builtin.uri:
1212
url: "{{ nexus_url }}/{{ nexus_repository }}/org/kill-bill/billing/installer/kpm/maven-metadata.xml"
13-
return_content: yes
13+
return_content: true
1414
register: kpm_metadata
1515
when: kpm_version is undefined
1616
tags: kpm
@@ -54,7 +54,7 @@
5454
become: true
5555
ansible.builtin.unarchive:
5656
src: "{{ kpm_install_dir }}/kpm-{{ kpm_version }}-noarch.tar.gz"
57-
remote_src: True
57+
remote_src: true
5858
dest: "{{ kpm_install_dir }}"
5959
owner: "{{ kpm_owner }}"
6060
group: "{{ kpm_group }}"
@@ -85,7 +85,7 @@
8585
become: true
8686
ansible.builtin.unarchive:
8787
src: "{{ kpm_install_dir }}/kpm-{{ kpm_version }}-linux-{{ ansible_architecture }}.tar.gz"
88-
remote_src: True
88+
remote_src: true
8989
dest: "{{ kpm_install_dir }}"
9090
owner: "{{ kpm_owner }}"
9191
group: "{{ kpm_group }}"
@@ -116,5 +116,5 @@
116116
path: "{{ kpm_install_dir }}/kpm-{{ kpm_version }}-linux-{{ ansible_architecture }}"
117117
owner: "{{ kpm_owner }}"
118118
group: "{{ kpm_group }}"
119-
recurse: yes
119+
recurse: true
120120
tags: kpm

ansible/roles/migrations/tasks/flyway.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- name: Download killbill-flyway release metadata
2222
ansible.builtin.uri:
2323
url: "{{ nexus_url }}/{{ nexus_repository }}/org/kill-bill/billing/killbill-util/maven-metadata.xml"
24-
return_content: yes
24+
return_content: true
2525
register: migrations_flyway_metadata
2626
when: migrations_flyway_version is undefined
2727
tags: migrations

ansible/roles/migrations/tasks/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- "{{ migrations_result['migrations']['killbill'] }}"
3434
- "{{ migrations_result['migrations']['plugins']['java'] }}"
3535
when: item['dir'] is defined
36-
changed_when: False
36+
changed_when: false
3737
register: migrations_java_dry_run_migrations
3838
tags: migrations
3939

@@ -53,4 +53,3 @@
5353
loop_control:
5454
loop_var: migration
5555
when: migration['dir'] is defined
56-

ansible/roles/migrations/tasks/migrate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
- name: Run SQL migration
3333
ansible.builtin.command: "{{ flyway }} -locations=filesystem:{{ migration['dir'] }} -table={{ migration['table'] }} -validateOnMigrate=false migrate"
3434
register: migrations_flyway_result
35-
ignore_errors: True
35+
ignore_errors: true
3636
changed_when: false
3737
tags: migrations
3838

ansible/roles/plugins/tasks/main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@
1717
plugin_key: "{{ plugin_key }}"
1818
local_node_only: "{{ local_node_only | default(false) }}"
1919
tags: plugin-restart
20-
21-

ansible/roles/tomcat/tasks/install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
name: "{{ tomcat_owner }}"
2222
comment: Kill Bill Tomcat owner
2323
group: "{{ tomcat_group }}"
24-
create_home: yes
24+
create_home: true
2525
home: "{{ tomcat_home }}"
2626
shell: /bin/bash
2727
state: present
@@ -30,7 +30,7 @@
3030
- name: Download Tomcat release metadata
3131
ansible.builtin.uri:
3232
url: "{{ nexus_url }}/{{ nexus_repository }}/org/apache/tomcat/tomcat/maven-metadata.xml"
33-
return_content: yes
33+
return_content: true
3434
register: tomcat_metadata
3535
when: tomcat_version is undefined
3636
tags: install
@@ -46,7 +46,7 @@
4646
become: true
4747
ansible.builtin.unarchive:
4848
src: "http://archive.apache.org/dist/tomcat/tomcat-9/v{{ tomcat_version }}/bin/apache-tomcat-{{ tomcat_version }}.tar.gz"
49-
remote_src: True
49+
remote_src: true
5050
dest: "{{ tomcat_install_dir }}"
5151
owner: "{{ tomcat_owner }}"
5252
group: "{{ tomcat_group }}"

0 commit comments

Comments
 (0)