Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions roles/gitlab_runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ Decide wether to install Docker via
Docker is required for the `docker` executor but not for the
`docker+machine` executor.

```yaml
gitlab_runner_hide_sensitive_changes: true
```
Do not display sensitive changes in diffs by default.

### Docker-machine variables

```yaml
Expand Down
3 changes: 3 additions & 0 deletions roles/gitlab_runner/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ gitlab_runner_autoscaler_plugin_url: "https://github.com/sardinasystems/fleeting
gitlab_runner_autoscaler_plugin_checksumfile: "https://github.com/sardinasystems/fleeting-plugin-openstack/releases/download/{{ gitlab_runner_autoscaler_plugin_version }}/fleeting-plugin-openstack_{{ gitlab_runner_autoscaler_binary_version }}_sha512-checksums.txt"

gitlab_runner_butane_config_template: "butane-config.bu.j2"

# Do not display sensitive changes in diffs by default
gitlab_runner_hide_sensitive_changes: true
2 changes: 1 addition & 1 deletion roles/gitlab_runner/tasks/install.autoscaler-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
owner: "root"
group: "root"
mode: '0600'
no_log: true
no_log: "{{ gitlab_runner_hide_sensitive_changes }}"

...
4 changes: 2 additions & 2 deletions roles/gitlab_runner/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
- name: "Initialize docker-machine"
ansible.builtin.include_tasks: "docker-machine-init.yml"
when: "__gitlab_runner_install_docker_machine"
no_log: true
no_log: "{{ gitlab_runner_hide_sensitive_changes }}"
loop: "{{ gitlab_runner_list }}"
loop_control:
loop_var: "gitlab_runner"
Expand All @@ -63,7 +63,7 @@
group: "{{ gitlab_runner_config_group | default('root') }}"
mode: "0600"
notify: "Restart GitLab-Runner"
no_log: true
no_log: "{{ gitlab_runner_hide_sensitive_changes }}"
vars:
__ignition_content: "{{ __ignition_json['content'] | b64decode }}"
when: "not __gitlab_runner_is_initial_dryrun"
Expand Down