-
Notifications
You must be signed in to change notification settings - Fork 266
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 linter #344
Merged
Merged
fix linter #344
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
1836a6d
fix: use fqcn
gardar c1ed347
fix: add ansible.windows collection requirement
gardar 2fca080
fix: add community.docker collection requirement
gardar 0d7df1c
fix: use command module instead of shell where possible
gardar 5338be4
fix: name casting
gardar 08d1949
fix: no-free-form
gardar e3a3678
fix: key order
gardar 269d2f0
fix: task names
gardar ca8d70b
fix: file permissions
gardar 28307c7
fix: changed_when
gardar adf0647
fix: jinja2 formatting
gardar 875621c
fix: yaml linting
gardar a3c9c34
fix: lint rebase
gardar d664db6
fix: yaml[colons]
Stunkymonkey 75b8c2f
fix: jinja[spacing]
Stunkymonkey 3e52040
ansible-lint: ignore role-name
Stunkymonkey 602ffc4
remove unessesary 'changed_when'
Stunkymonkey 31ea289
ansible-lint: ignore no-changed-when
Stunkymonkey 6077f53
reduce changes
Stunkymonkey 807efc7
use dnf instead of yum
Stunkymonkey ec243c1
fix test
Stunkymonkey 8f76a73
remove dependencies from meta/main.yml due to requirements.yml
Stunkymonkey 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,5 @@ | ||
--- | ||
profile: production | ||
warn_list: | ||
- role-name # until role name is fixed on galaxy https://github.com/riemers/ansible-gitlab-runner/pull/312 | ||
- no-changed-when # TODO in future |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
--- | ||
# 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 }}" | ||
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
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.
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.
Could this make problems?
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.
Good question, if its mandatory installation it might..
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.
On a second thought, even though if they are mandatory, it should not influence developers much I guess. It just means, that the roles are downloaded I guess but it has no effect on the actual galaxy role. So I'm fine with merging it.
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.
this will enforce the user to install both dependencies.
On one hand this is good, because in ansible 2.16+ the
docker_container
role is not found (which is only needed for the docker-executor). On the other hand this is not really needed, when you configure a windows-shell runner (but thenansible.windows
is required forwin_command
)optional dependencies would fit perfectly. But installing dependencies should never hurt, due to the introduced namespaces.