# Copyright 2022 Dell Inc. or its subsidiaries. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. --- - name: Update realm_name in promtail_config.yml replace: path: "{{ role_path }}/files/promtail_config.yml" regexp: 'OMNIA-TEST' replace: "{{ realm_name | replace('.','-') }}" when: enable_security_support - name: Promtail image creation command: "buildah bud -f Dockerfile_promtail -t {{ promtail_image_name }}:{{ promtail_image_tag }} ." changed_when: true register: create_promtail_image until: create_promtail_image is not failed retries: "{{ image_creation_retries }}" args: chdir: "{{ role_path }}/files/"