Category "yaml"

Changing a value in a yaml file using Python

I have a .yaml file I want to update with Python code. Let's say it looks something like that: state: 'present' I'd like to have a code that changes the stat

How to filter out a particular line from ansible output

I am facing an issue while running my ansible-playbook to filter out the IP address from the playbook output. Here is my code - hosts: myhost tasks: - nam

Spring Boot multiple log4j appenders in application.yml file

I need 2 different logging patterns in my SpringBoot application. let's say: first_pattern -- for root logger (INFO level) second_pattern -- for packages com.s

yaml anchors definitions loading in PyYAML

I'm using PyYAML. Is there a way to define a YAML anchor in a way it won't be a part of the data structure loaded by yaml.load (I can remove "wifi_parm" from th

Github Action - use Variable in the script [duplicate]

With Github Actions how to do a backup of a file? I need to create a new folder named with the date/time of today. name: Backup Database on:

How to split a YAML into multiple files with a proper name

I have a valid YAML: --- name: first metadata: a --- name: second metadata: b --- name: third metadata: c How can I split it using a one-liner AWK script in

Openshift routes are not redirected to particular service

I have deployed few services of my application on openshift : E.g., app-ui, app-backend,app-store ,main. I have defined separate routes for these services to ac

Cannot import script from repository in pytest using GitHub actions

I am learning to implement automatic testing using GitHub actions. I am trying to solve the following import error. The error is: utils\test_capitalize.py:2: in

Ansible AnsibleUndefinedVariable no attribute

I have the following files vars/main.yml testconfig: - {hostname: router123, example: no ip cef} cisco_891_l2interfaces: - FastEthernet0 - FastEthernet1 -

How to escape colon with following space in a GItLab CI/CD YAML value?

I have the following line in GitLab CI/CD: script: - echo "Backend image: $BACKEND_IMAGE" But YAML interpreters treat this as an object. Then I googled t

How to define default null value in application.yml in Spring Boot

I'm trying to define the default value as null value in application.yml with SpringBoot version 1.3.0.RELEASE. The goal is be able to refer it with a class with

How to find out size of my POST request for yandex.tank ammo?

I create on my own ammo for Yandex.Tank: POST /some/path HTTP/1.1 Host: some.host Content-Length: 169 Connection: Close { "some": "json" } As I get from d

How to enter a value to a textbox from an external excel or YAML file in Appium?

I'm aware of the fact that it is possible to enter a value to a text box using Appium sendkeys. Is it possible to pass values from an external excel or YAML fil

Git tag name in Azure Devops Pipeline YAML

Summary How do I get the name of the current git tag in an Azure Devops Pipeline YAML-file? What Am I Trying to Do? I am setting up a build pipeline in Azure

.gitlab-ci.yml Syntax Error

I'm working with the following .gitlab-ci.yml config: image: node:latest stages: - build - test build: stage: build script: - npm install test

Bitbucket Pipelines hangs when testing a Nuxt app with Cypress

I have a Nuxt app that I want to test with Cypress in CI. I've seen in the Cypress documentation that you have to install some third-party package to wait for t

How to merge rules on a GitLab CI Job

Let's suppose I have this hidden "base" job. .base_job: rules: - if: "$CI_COMMIT_TAG" when: never - if: '$CI_PIPELINE_SOURCE == "web"' I'd like

Python 3.3: Convert XML to YAML

I'm trying to convert XML files to YAML using Python 3.3. This is my code: #! /etc/python3 test_filename_input = './reference-conversions/wikipedia-example.xm

In Azure yaml, how to use local variables, conditional variables and template variables together?

Consider the following scenario, on where a job (or stage), needs to use some local, conditional and template variables: # (1) Local for the yaml file variables

Does application.yml support environment variables?

I tried using env variables in my application.yml configration like: spring: main: show_banner: false --- spring: profiles: production server: addr