Category "yaml"

Absolute url in hugo website front matter _index.md file

I'm stuck at the following issue being a new in Hugo. I want to redirect URL to a absolute URL rather than relative url. Here is what I means. In _index.md file

write tasks to install nginx and postgresql using ansible-playbook

.score.sh is given as #!/bin/bash pass=0; fail=0; if [ $? -eq 0 ];then worker=`ps -eaf|grep nginx|grep worker` master=`ps -eaf|grep nginx|grep master`

How do I create a googleads yaml file for python googleads lib?

im trying to use get functions for reports under googleads. #My code from googleads import adwords from googleads import errors import time import datetime impo

TF401019: The Git repository with name or identifier public does not exist or you do not have permissions for the operation you are attempting

I have two ADO repositories named private2 and public2. private2 references public2 as a submodule: I also added a yaml file (vsts-cicd.yml) for build as follo

Azure yaml pipeline using "extends"

I am trying to use extends as part of my pipeline. I am trying to get the first basic step working from Azure docs ie # pythonparameter-template.yml pa

How to convert a json response into yaml in bash

I read data from a json file with jq. I wanna append the results into a yaml file, but I dont get it working. I am quite new to shell programming. My goal is to

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