Skip to content

Commit

Permalink
Support harbor_config_reject
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkwr committed Jun 14, 2021
1 parent a1597f7 commit 228360a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ harbor_config:
password: "{{ harbor_database_password }}"

harbor_database_password: "root123"
harbor_config_reject: []

# This overrides harbor template and harbor_config.
# See additional config options here: https://github.com/goharbor/harbor/blob/master/make/harbor.yml.tmpl
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

- name: "Combine harbor config with template"
set_fact:
harbor_yml: "{{ harbor_yml_tmpl.content | b64decode | from_yaml | combine(harbor_config, recursive=True) | combine(harbor_extra_config, recursive=True) }}"
harbor_yml: "{{ harbor_yml_tmpl.content | b64decode | from_yaml | combine(harbor_config, recursive=True) | combine(harbor_extra_config, recursive=True) | dict2items | rejectattr('key', 'in', harbor_config_reject) | items2dict }}"

- name: "Write combined config to harbor.yml"
blockinfile:
Expand Down

0 comments on commit 228360a

Please sign in to comment.