15,819 questions
Advice
1
vote
4
replies
78
views
Meaning of `command < <(command)`?
I stumbled upon this whilst trying to learn yq. Could someone explain what's going on here exactly?
coolActions:
- create
- edit
- delete
readarray actions < <(yq '.coolActions[]' sample....
Advice
0
votes
6
replies
102
views
Is yml easier then python?
I know it seems like a very stupid question, but my brother said it was easy, so I wonder now if yml is easier than python. He says it's just remembering names and values which does make it seem ...
-3
votes
2
answers
71
views
Azure Pipelines, issue to share values across yaml
I'm quite a beginner in Azure pipeline yaml.
Here is some context: I have a azure-pipelines.yml shown here that calls another dotnet-test-build-and-deploy-to-aks-template.yaml.
In this dotnet-test-...
Best practices
1
vote
1
replies
74
views
how to fail a task on a specific retry attempt when using until?
I am using an Ansible task to wait until a service reaches the STOP state.
This is my current task:
- name: Wait until the service is in STOP state
shell: |
echo "try 3"
register: ...
1
vote
1
answer
60
views
Backslash and Placeholder in application.yml
Given is a Spring Boot application.yml file.
host: example.com
unc-path: \\${host}\share
If unc-path is printed, the output is \${host}\share.
I expect the placeholder ${host} to be resolved. The ...
0
votes
1
answer
60
views
Use same variable from multiple Azure DevOps Pipeline Libraries
I have an issue and I just can't figure out a way to solve it.
I have a variable group for each of my environments environment:
My_Var_Group_Prod
My_Var_Group_Dev
In each of those variable groups I ...
Advice
0
votes
14
replies
116
views
How to replicate serial port data to one or more tcp connections
Context
I have a smart meter which regularly emits telegrams about electricity (and gas/water) consumption over a serial port, which I have connected to a Pi. These telegrams are received once per ...
0
votes
1
answer
41
views
Agnostic volume mapping in Docker Compose yaml
I have:
services:
httpd:
volumes:
- "C:/path/to/repo:/path/to/code"
How do I make the source path agnostic so my colleague using a Mac can simply docker compose the yaml file?
2
votes
1
answer
85
views
Why does ansible-lint complain about "key-order" when more than one YAML anchor is used in the same task?
I have Ansible tasks with some code repetition which I want to address using YAML anchors as follows. When only using one anchor in one task - no ansible-lint warnings happen. However, if using more ...
Advice
0
votes
2
replies
45
views
How can Unity YAML scene files be interpreted in an external runtime?
I'm working on an experimental project called NextLiber VRM, which attempts to interpret Unity scene files outside the Unity runtime.
Unity stores scenes in YAML format, including transforms, ...
0
votes
0
answers
37
views
Making a link clickable in Azure Pipelines YAML
I have a YAML job where I want the link in the ManualValidation@0 task instructions to appear as clickable. Here is the job definition:
job: Manual_CreatePR
displayName: 'Manual: Open GitHub PR for ...
5
votes
1
answer
161
views
Python -> YAML: the strings yes and no get quotation marks (but shouldn't)
Is there a reason why yaml adds single quotation marks around the words yes and no when I create a YAML file from a Python dict?
MWE:
import yaml
def yes_or_no(
word: str,
) -> dict:
...
2
votes
2
answers
160
views
Combine JSON to YAML list
In a GitLab pipeline job I have multiple JSON files. I need these JSON files as YAML and I would like to have them in the same YAML file as a list. They do not always have the same keys.
I would like ...
Best practices
0
votes
1
replies
78
views
Deploying separate repos to production with azure-pipelines.yml
I have 4 repos in Azure (all are in development branch):
Web App
Web API
Mail Console 1
Mail Console 2
Here's how I deploy them in testing phase:
Publish Web App and Web API
Build Mail Console 1 ...
0
votes
1
answer
78
views
Replace value inplace while saving the old value
I'm looking to use yq to replace a yaml file values while still retaining the old value.
Essentially putting base/1.0.0/ after base.routes.paths ~/ and what comes after. The added value will be the ...