-
Notifications
You must be signed in to change notification settings - Fork 271
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
Fix linting issues #312
Closed
Closed
Fix linting issues #312
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b9add3c
fix: role name
gardar c71e259
fix: use fqcn
gardar aec834e
fix: add ansible.windows collection requirement
gardar e3024b6
fix: add community.docker collection requirement
gardar ee84328
fix: use command module instead of shell where possible
gardar 814968e
fix: name casting
gardar d1ba5c2
fix: no-free-form
gardar 272cc8b
fix: key order
gardar d948304
fix: task names
gardar 65815cb
fix: file permissions
gardar 1c2535e
fix: changed_when
gardar 557fc01
fix: jinja2 formatting
gardar f5b17e9
fix: yaml linting
gardar 0ae03b0
Merge branch 'master' into lint
gardar dd19793
fix: lint rebase
gardar 8a169d5
fix: make invalid role-name pass linter as requested
gardar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
profile: production | ||
warn_list: | ||
- role-name # until role name is fixed on galaxy https://github.com/riemers/ansible-gitlab-runner/pull/312 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ on: | |
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
ansible-lint: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
--- | ||
# non macOS | ||
- name: restart_gitlab_runner | ||
service: name=gitlab-runner state={{ gitlab_runner_restart_state }} | ||
- name: Restart_gitlab_runner | ||
ansible.builtin.service: | ||
name: gitlab-runner | ||
state: "{{ gitlab_runner_restart_state }}" | ||
listen: restart_gitlab_runner | ||
become: true | ||
when: ansible_os_family != 'Darwin' and ansible_os_family != 'Windows' and not gitlab_runner_container_install | ||
|
||
# macOS | ||
- name: restart_gitlab_runner_macos | ||
command: "{{ gitlab_runner_executable }} restart" | ||
- name: Restart_gitlab_runner_macos | ||
ansible.builtin.command: "{{ gitlab_runner_executable }} restart" | ||
listen: restart_gitlab_runner_macos | ||
become: "{{ gitlab_runner_system_mode }}" | ||
changed_when: true | ||
when: ansible_os_family == 'Darwin' and gitlab_runner_macos_start_runner | ||
|
||
- name: restart_gitlab_runner_windows | ||
win_command: "{{ gitlab_runner_executable }} restart" | ||
- name: Restart_gitlab_runner_windows | ||
ansible.windows.win_command: "{{ gitlab_runner_executable }} restart" | ||
args: | ||
chdir: "{{ gitlab_runner_config_file_location }}" | ||
listen: restart_gitlab_runner_windows | ||
when: ansible_os_family == 'Windows' and gitlab_runner_windows_start_runner | ||
|
||
# Container | ||
- name: restart_gitlab_runner_container | ||
docker_container: | ||
- name: Restart_gitlab_runner_container | ||
community.docker.docker_container: | ||
name: "{{ gitlab_runner_container_name }}" | ||
restart: true | ||
listen: restart_gitlab_runner_container | ||
when: gitlab_runner_container_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe we should close #342. the linting would already "fix" it. but not with optional dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
collections: | ||
- name: ansible.windows | ||
- name: community.docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I this necessary? Doesn't the
command
module produces a "changed" anyway?