Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New linting rules #221

Merged
merged 4 commits into from
Dec 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- run:
name: Ansible-lint check
command: |
ansible-lint -v roles/*/*/*.yaml roles/*/*/*.yml stackstorm.yml
ansible-lint -x 204 -v roles/*/*/*.yaml roles/*/*/*.yml stackstorm.yml
8 changes: 3 additions & 5 deletions roles/bwc/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- stackstorm
- BWC
- Brocade Workflow Composer
- EWC
- Extreme Workflow Composer
- bwc
- ewc
- repositories
- packagecloud
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion roles/bwc/tasks/bwc_repos_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
- ewc
- enterprise
register: bwc_repo_added
when: bwc_read_token != ''
when: bwc_read_token | length > 0
8 changes: 3 additions & 5 deletions roles/bwc_smoketests/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- stackstorm
- BWC
- Brocade Workflow Composer
- EWC
- Extreme Workflow Composer
- bwc
- ewc
- repositories
- packagecloud
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion roles/epel/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- system
2 changes: 1 addition & 1 deletion roles/mongodb/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- system
dependencies:
- role: epel
Expand Down
2 changes: 1 addition & 1 deletion roles/nginx/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- web
- nginx
2 changes: 1 addition & 1 deletion roles/nodejs/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- system
2 changes: 1 addition & 1 deletion roles/postgresql/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- system
2 changes: 1 addition & 1 deletion roles/rabbitmq/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- system
2 changes: 1 addition & 1 deletion roles/st2/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- stackstorm
- st2
- automation
Expand Down
2 changes: 1 addition & 1 deletion roles/st2/tasks/proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
dest: /etc/{{ 'default' if ansible_facts.pkg_mgr == 'apt' else 'sysconfig' }}/{{ item.0 }}
create: yes
regexp: '^{{ item.1 }}='
line: "{{ item.1}}={{ ansible_facts.env.get(item.1) }}"
line: "{{ item.1 }}={{ ansible_facts.env.get(item.1) }}"
# NB: Empty ENV var cast to 'None' string in Ansible
state: "{{ 'present' if ansible_facts.env.get(item.1, 'None') != 'None' else 'absent' }}"
vars:
Expand Down
2 changes: 1 addition & 1 deletion roles/st2chatops/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- st2
- devops
- chatops
Expand Down
2 changes: 1 addition & 1 deletion roles/st2chatops/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

- name: Generate authentication token
command: st2 auth "{{ st2_auth_username }}" -p "{{ st2_auth_password }}" -t
when: task_apikey_not_exists is succeeded and task_user_st2_api_key.changed == false
when: task_apikey_not_exists is succeeded and task_user_st2_api_key is not changed
register: task_st2_token
tags: [st2chatops, skip_ansible_lint]

Expand Down
2 changes: 1 addition & 1 deletion roles/st2mistral/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- automation
- devops
- workflows
Expand Down
2 changes: 1 addition & 1 deletion roles/st2repo/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- stackstorm
- repositories
- packagecloud
2 changes: 1 addition & 1 deletion roles/st2web/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ galaxy_info:
versions:
- 6
- 7
categories:
galaxy_tags:
- system
dependencies:
- role: nginx
Expand Down