Skip to content

Commit 0aee240

Browse files
committed
Make the implementation compatible with previous Ansible versions
It looks like previous version auto convert the string into an ansible dictionary leading to issues when explicitly making use of from_json.
1 parent d0bca32 commit 0aee240

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roles/gitlab_runner/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
notify: "Restart GitLab-Runner"
6666
no_log: "{{ gitlab_runner_hide_sensitive_changes }}"
6767
vars:
68-
__ignition_content: "{{ __ignition_json['content'] | b64decode }}"
68+
__ignition_content: "{{ __ignition_json['content'] | b64decode | from_json }}"
6969
when: "not __gitlab_runner_is_initial_dryrun"
7070

7171
- name: "Start GitLab-Runner"

roles/gitlab_runner/templates/config.toml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ sentry_dsn = "{{ gitlab_runner_sentry_dsn }}"
114114
networks = [ { uuid = "{{ runner.autoscaler_network_id }}" } ]
115115
security_groups = [ "{{ runner.autoscaler_security_group }}" ]
116116
scheduler_hints = { group = "{{ runner.autoscaler_scheduler_hint }}" }
117-
user_data = '{{ __ignition_content | from_json | to_json }}'
117+
user_data = '{{ __ignition_content | to_json }}'
118118

119119
[runners.autoscaler.connector_config]
120120
username = "{{ runner.autoscaler_username }}"

0 commit comments

Comments
 (0)