Skip to content

Commit b7af5c9

Browse files
committed
chore: fix ansible-lint 6.17.2 (2)
1 parent a40e06d commit b7af5c9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.ansible-lint

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
skip_list:
33
- '106'
44
- ignore-errors
5+
- yaml[truthy]
56
exclude_paths:
67
- .github/workflows/

tasks/install_runner.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
ansible.builtin.file:
44
path: "{{ runner_dir }}"
55
state: directory
6-
mode: 0755
6+
mode: '0755'
77
owner: "{{ runner_user_id.stdout }}"
88
group: "{{ runner_user_group_id.stdout }}"
99

@@ -27,7 +27,7 @@
2727
owner: "{{ runner_user_id.stdout }}"
2828
group: "{{ runner_user_group_id.stdout }}"
2929
remote_src: yes
30-
mode: 0755
30+
mode: '0755'
3131
environment:
3232
PATH: /usr/local/bin:/opt/homebrew/bin/:{{ ansible_env.HOME }}/bin:{{ ansible_env.PATH }}
3333
when: runner_version not in runner_installed.stdout or reinstall_runner
@@ -38,7 +38,7 @@
3838
block: "{{ custom_env }}"
3939
owner: "{{ runner_user }}"
4040
create: yes
41-
mode: 0755
41+
mode: '0755'
4242
marker_begin: "# BEGIN ANSIBLE MANAGED BLOCK"
4343
marker_end: "# END ANSIBLE MANAGED BLOCK"
4444
when: custom_env is defined
@@ -112,7 +112,10 @@
112112
chdir: "{{ runner_dir }}"
113113
no_log: "{{ hide_sensitive_logs | bool }}"
114114
ignore_errors: "{{ ansible_check_mode }}"
115-
when: ansible_system != 'Darwin' and runner_state|lower == "started" and ansible_facts.services[(runner_service.content | b64decode) | trim ]['state'] != 'running'
115+
when:
116+
- ansible_system != 'Darwin'
117+
- runner_state|lower == "started"
118+
- ansible_facts.services[(runner_service.content | b64decode) | trim ]['state'] != 'running'
116119

117120
- name: START and enable Github Actions Runner service (macOS) # TODO: Idempotence
118121
ansible.builtin.command: "./svc.sh start" # noqa no-changed-when

0 commit comments

Comments
 (0)