promtail_image.yml 1.1 KB

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