Skip to content

Commit 875621c

Browse files
gardarStunkymonkey
authored andcommitted
fix: yaml linting
Signed-off-by: gardar <[email protected]>
1 parent adf0647 commit 875621c

13 files changed

+23
-20
lines changed

.github/workflows/stale.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
steps:
1717
- uses: actions/stale@v8
1818
with:
19-
stale-issue-message: Seems this message did not get a lot of love. This does not mean it was not seen but time wise might not have made it to proper attention.
19+
stale-issue-message: Seems this message did not get a lot of love.
20+
This does not mean it was not seen but time wise might not have made it to proper attention.
2021
This is just the clean up action ;)
21-
stale-pr-message: Although PRs are appreciated, if it sits for too long nothing happens. Can always update and do again :) This is just the automation talking
22+
stale-pr-message: Although PRs are appreciated, if it sits for too long nothing happens. Can always update and do again :)
23+
This is just the automation talking
2224
days-before-issue-stale: 30
2325
days-before-pr-stale: 45
2426
days-before-issue-close: 5

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# Check ansible version
1818
- ansible --version
1919
# Create ansible.cfg with correct roles_path
20-
#- printf '[defaults]\nroles_path=../' > ansible.cfg
20+
# - printf '[defaults]\nroles_path=../' > ansible.cfg
2121
- "{ echo '[defaults]'; echo 'roles_path = ../'; } > ansible.cfg"
2222
script:
2323
# Basic role syntax check
@@ -30,7 +30,7 @@ jobs:
3030
- os: osx
3131
osx_image: xcode10.3
3232
# See https://github.com/travis-ci/travis-ci/issues/2312#issuecomment-422830059
33-
#language: python
33+
# language: python
3434
language: generic
3535
install:
3636
# Install ansible
@@ -59,7 +59,7 @@ jobs:
5959
- cd ../../
6060
- wsl ansible-playbook test.yml -i inventory --syntax-check
6161
# Running tests
62-
- wsl ansible-playbook test.yml -i inventory --extra-vars 'ansible_user=ansible ansible_password=Ans1ble_User! ansible_connection=winrm ansible_winrm_server_cert_validation=ignore
63-
ansible_ssh_port=5986'
62+
- wsl ansible-playbook test.yml -i inventory --extra-vars 'ansible_user=ansible ansible_password=Ans1ble_User!
63+
ansible_connection=winrm ansible_winrm_server_cert_validation=ignore ansible_ssh_port=5986'
6464
notifications:
6565
webhooks: https://galaxy.ansible.com/api/v1/notifications/

tasks/config-runner.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
ansible.builtin.copy:
1313
dest: "{{ temp_runner_config.path }}"
1414
content: "{{ runner_config }}"
15-
mode: 0644
15+
mode: "0644"
1616
check_mode: false
1717
changed_when: false
1818
no_log: "{{ gitlab_runner_no_log_secrets | default(omit) }}"

tasks/global-setup.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
state: touch
1313
modification_time: preserve
1414
access_time: preserve
15-
mode: 0600
15+
mode: "0600"
1616
become: "{{ gitlab_runner_system_mode }}"
1717

1818
- name: Set concurrent option

tasks/install-container.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
ansible.builtin.file:
1010
state: directory
1111
path: "{{ gitlab_runner_container_mount_path }}"
12-
mode: 0755
12+
mode: "0755"

tasks/install-macos.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
ansible.builtin.file:
3131
path: /usr/local/var/log
3232
state: directory
33-
mode: 0755
33+
mode: "0755"
3434
owner: "{{ ansible_user_id | string }}"
3535

3636
- name: (MacOS) Precreate directory {{ gitlab_runner_directory }}
3737
ansible.builtin.file:
38-
mode: "755"
38+
mode: "0755"
3939
owner: root
4040
path: "{{ gitlab_runner_directory }}"
4141
state: directory

tasks/install-windows.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
when: (gitlab_runner_windows_service_user | length == 0) or (gitlab_runner_windows_service_password | length == 0)
4343

4444
- name: (Windows) Install GitLab Runner
45-
ansible.windows.win_command: '{{ gitlab_runner_executable }} install --user "{{ gitlab_runner_windows_service_user }}" --password "{{ gitlab_runner_windows_service_password
46-
}}"'
45+
ansible.windows.win_command: '{{ gitlab_runner_executable }} install --user "{{ gitlab_runner_windows_service_user }}" --password
46+
"{{ gitlab_runner_windows_service_password }}"'
4747
args:
4848
chdir: "{{ gitlab_runner_config_file_location }}"
4949
when:

tasks/register-runner-container.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
--ssh-password '{{ gitlab_runner.ssh_password | hash("sha1") }}'
129129
{% endif %}
130130
dest: "{{ gitlab_runner_config_file_location }}/last-runner-config-{{ actual_gitlab_runner_name }}"
131-
mode: 0644
131+
mode: "0644"
132132
register: runner_config_state
133133

134134
- name: Unregister runner

tasks/register-runner-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
--ssh-password '{{ gitlab_runner.ssh_password | hash("sha1") }}'
128128
{% endif %}
129129
dest: "{{ gitlab_runner_config_file_location }}/last-runner-config-{{ actual_gitlab_runner_name }}"
130-
mode: 0644
130+
mode: "0644"
131131
register: runner_config_state
132132

133133
- name: Unregister runner

tasks/register-runner.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
--ssh-password '{{ gitlab_runner.ssh_password | hash("sha1") }}'
168168
{% endif %}
169169
dest: "{{ gitlab_runner_config_file_location }}/last-runner-config-{{ actual_gitlab_runner_name }}"
170-
mode: 0644
170+
mode: "0644"
171171
register: runner_config_state
172172

173173
- name: Unregister runner

tasks/systemd-reload.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
content: |
1616
[Service]
1717
ExecReload=/bin/kill -HUP $MAINPID
18-
mode: 0644
18+
mode: "0644"
1919
register: gitlab_runner_exec_reload
2020

2121
# https://docs.gitlab.com/runner/configuration/init.html#overriding-systemd
@@ -27,7 +27,7 @@
2727
[Service]
2828
TimeoutStopSec={{ gitlab_runner_timeout_stop_seconds }}
2929
KillSignal=SIGQUIT
30-
mode: 0644
30+
mode: "0644"
3131
when: gitlab_runner_timeout_stop_seconds > 0
3232
register: gitlab_runner_kill_timeout
3333

tests/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
ansible.builtin.copy:
1818
src: mock_gitlab_runner_ci.py
1919
dest: ~/mock_gitlab_runner_ci.py
20-
mode: 0644
20+
mode: "0644"
2121
when: run_mock_server
2222

2323
- name: Ensure mock CI pidfile is absent

vars/Darwin.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
gitlab_runner_arch: "{{ (ansible_machine == 'arm64') | ternary('arm64', 'amd64') }}"
44

5-
gitlab_runner_download_url: https://gitlab-runner-downloads.s3.amazonaws.com/{{ gitlab_runner_wanted_tag }}/binaries/gitlab-runner-darwin-{{ gitlab_runner_arch }}
5+
gitlab_runner_download_url:
6+
"https://gitlab-runner-downloads.s3.amazonaws.com/{{ gitlab_runner_wanted_tag }}/binaries/gitlab-runner-darwin-{{ gitlab_runner_arch }}"
67

78
gitlab_runner_directory: /usr/local/bin
89
gitlab_runner_executable: "{{ gitlab_runner_directory }}/{{ gitlab_runner_package_name }}"

0 commit comments

Comments
 (0)