|
1 | 1 | --- |
2 | | -- name: (Windows) Create .gitlab-runner dir |
| 2 | +- name: "(Windows) Create .gitlab-runner dir" |
3 | 3 | ansible.windows.win_file: |
4 | 4 | path: "{{ gitlab_runner_config_file_location }}" |
5 | 5 | state: directory |
6 | 6 |
|
7 | | -- name: (Windows) Ensure config.toml exists |
| 7 | +- name: "(Windows) Ensure config.toml exists" |
8 | 8 | ansible.windows.win_file: |
9 | 9 | path: "{{ gitlab_runner_config_file }}" |
10 | 10 | state: touch |
11 | 11 | modification_time: preserve |
12 | 12 | access_time: preserve |
13 | 13 |
|
14 | | -- name: (Windows) Set concurrent option |
| 14 | +- name: "(Windows) Set concurrent option" |
15 | 15 | community.windows.win_lineinfile: |
16 | 16 | dest: "{{ gitlab_runner_config_file }}" |
17 | 17 | regexp: ^(\s*)concurrent =.* |
|
23 | 23 | - restart_gitlab_runner_macos |
24 | 24 | - restart_gitlab_runner_windows |
25 | 25 |
|
26 | | -- name: (Windows) Set check_interval option |
| 26 | +- name: "(Windows) Set check_interval option" |
27 | 27 | community.windows.win_lineinfile: |
28 | 28 | dest: "{{ gitlab_runner_config_file }}" |
29 | 29 | regexp: ^check_interval =.* |
|
35 | 35 | - restart_gitlab_runner |
36 | 36 | - restart_gitlab_runner_windows |
37 | 37 |
|
38 | | -- name: (Windows) Add listen_address to config |
| 38 | +- name: "(Windows) Add listen_address to config" |
39 | 39 | community.windows.win_lineinfile: |
40 | 40 | dest: "{{ gitlab_runner_config_file }}" |
41 | 41 | regexp: ^listen_address =.* |
42 | 42 | line: listen_address = "{{ gitlab_runner_listen_address }}" |
43 | 43 | insertafter: \s*concurrent.* |
44 | 44 | state: present |
45 | | - when: gitlab_runner_listen_address | length > 0 # Ensure value is set |
| 45 | + when: gitlab_runner_listen_address | length > 0 # Ensure value is set |
46 | 46 | notify: |
47 | 47 | - restart_gitlab_runner |
48 | 48 | - restart_gitlab_runner_windows |
49 | 49 |
|
50 | | -- name: (Windows) Add sentry dsn to config |
| 50 | +- name: "(Windows) Add sentry dsn to config" |
51 | 51 | community.windows.win_lineinfile: |
52 | 52 | dest: "{{ gitlab_runner_config_file }}" |
53 | 53 | regexp: ^sentry_dsn =.* |
54 | 54 | line: sentry_dsn = "{{ gitlab_runner_sentry_dsn }}" |
55 | 55 | insertafter: \s*concurrent.* |
56 | 56 | state: present |
57 | | - when: gitlab_runner_sentry_dsn | length > 0 # Ensure value is set |
| 57 | + when: gitlab_runner_sentry_dsn | length > 0 # Ensure value is set |
58 | 58 | notify: |
59 | 59 | - restart_gitlab_runner |
60 | 60 | - restart_gitlab_runner_macos |
61 | 61 | - restart_gitlab_runner_windows |
62 | 62 |
|
63 | | -- name: (Windows) Add session server listen_address to config |
| 63 | +- name: "(Windows) Add session server listen_address to config" |
64 | 64 | community.windows.win_lineinfile: |
65 | 65 | dest: "{{ gitlab_runner_config_file }}" |
66 | 66 | regexp: ^(\s+)listen_address = |
|
72 | 72 | - restart_gitlab_runner_macos |
73 | 73 | - restart_gitlab_runner_windows |
74 | 74 |
|
75 | | -- name: (Windows) Add session server advertise_address to config |
| 75 | +- name: "(Windows) Add session server advertise_address to config" |
76 | 76 | community.windows.win_lineinfile: |
77 | 77 | dest: "{{ gitlab_runner_config_file }}" |
78 | 78 | regexp: ^\s*advertise_address = |
|
84 | 84 | - restart_gitlab_runner_macos |
85 | 85 | - restart_gitlab_runner_windows |
86 | 86 |
|
87 | | -- name: (Windows) Add session server session_timeout to config |
| 87 | +- name: "(Windows) Add session server session_timeout to config" |
88 | 88 | community.windows.win_lineinfile: |
89 | 89 | dest: "{{ gitlab_runner_config_file }}" |
90 | 90 | regexp: ^\s*session_timeout = |
|
0 commit comments