diff --git a/changelogs/fragments/295-add-else_builder_kickstart_post.yml b/changelogs/fragments/295-add-else_builder_kickstart_post.yml new file mode 100644 index 00000000..6cd8dcbb --- /dev/null +++ b/changelogs/fragments/295-add-else_builder_kickstart_post.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - Add else for _builder_kickstart_post diff --git a/roles/builder/vars/main.yml b/roles/builder/vars/main.yml index 79f80bfc..1cb6f13c 100644 --- a/roles/builder/vars/main.yml +++ b/roles/builder/vars/main.yml @@ -13,7 +13,7 @@ builder_kickstart_options: - services --enabled=ostree-remount - ostreesetup --nogpg --osname=rhel --remote=edge --url=http://{{ builder_system_ipv4 }}/{{ builder_blueprint_name }}/repo/ --ref={{ builder_blueprint_ref }} # noqa yaml[line-length] _builder_kickstart_post: # noqa var-naming[no-role-prefix] - - "{{ lookup('ansible.builtin.template', '../templates/auto_register_aap.j2') if builder_aap_url is defined | default(None) }}" + - "{{ lookup('ansible.builtin.template', '../templates/auto_register_aap.j2') if builder_aap_url is defined else None | default(None) }}" builder_kickstart_post: "{{ _builder_kickstart_post + additional_kickstart_post if additional_kickstart_post is defined else (_builder_kickstart_post if _builder_kickstart_post is defined else None) | default(None) }}" # yamllint disable-line rule:line-length _builder_pub_key: "{{ builder_pub_key if builder_pub_key is defined else (builder_pub_key_path if builder_pub_key_path is defined else '') }}" # noqa var-naming[no-role-prefix] yaml[line-length] # yamllint disable-line rule:line-length