Skip to content

Commit

Permalink
UnixPB : Linter Fixes (#3111)
Browse files Browse the repository at this point in the history
* Update become method to be fq.

* Add ansible lint rule for variables file.

* fix yml

* Delete ansible-lint test

* Test lint fix

* Specify linter to use on variables file

* Fix spacing

* Specify vars schema for adoptopenjdk vars file

* revert sudo change

* Fix sudo to be fq name.
  • Loading branch information
steelhead31 committed Jun 21, 2023
1 parent 8653724 commit e45fd7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
# .ansible-lint

skip_list:
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern
- '204' # Lines should be no longer than 160 chars
Expand All @@ -22,6 +24,8 @@ skip_list:
- 'fqcn[action]' # Exclude As Requires Significant Changes ( 249 changes required )
- 'args[module]' # Exclude Experimental Rule Validation ( Prevents 4 experimental warnings )

kinds:
- vars: "ansible/playbooks/adoptopenjdk_variables.yml"

exclude_paths:
- ./ansible/playbooks/adoptopenjdk_variables.yml # See: https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1926
- ansible/playbooks/adoptopenjdk_variables.yml # See: https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/1926
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
group: wheel
become: yes
become_user: root
become_method: sudo
become_method: ansible.builtin.sudo

- name: Install latest JDK {{ jdk_version }} release if one not already installed (Solaris)
when:
Expand Down

0 comments on commit e45fd7a

Please sign in to comment.