Questions tagged [yaml]

YaML is a human-readable data serialisation format.

YAML is a data serialisation format designed to be written and read by humans. Modern YAML is a superset of JSON, meaning that YAML parsers can consume any valid JSON as well as the richer and more human-friendly long form.

For more information refer to the YAML Wikipedia page or the YAML homepage.

86 questions
1
vote
0 answers

How to monitor datadog-agent's certificates expiration?

I have an nginx-pod which redirects traffic into Kubernetes services and stores related certificates insides its volume. I want to monitor these certificates - mainly their expiration. I found out that there is a TLS integration in Datadog (we use…
1
vote
1 answer

How to convert and save raw data to PDF format using ansible

I will be getting some raw data directly from an API. I want to format this and convert into PDF file and save it. I gone through ansible modules. I am not getting any idea in this. Can someone suggest how we can achieve it using Ansible please.
saffron
  • 123
  • 1
  • 3
  • 9
1
vote
1 answer

When using an Ansible playbook, how do you store and use a password containing quotes or other metacharacters without them being interpereted?

My company uses Ansible (which I am a novice at) and we have a playbook and a related role for joining new Linux machines to AD. Our admin accounts have their passwords rolled three times a day, and we can't set them ourselves. The Ansible…
Linoob
  • 113
  • 3
1
vote
0 answers

Puppet - Get interface name from netplan yalm config

How to get interface name which has nameservers defined? I want to get the interface name so I can pass it to another netplan puppet module so the nameservers can be replaced. But I only want to get the interface name (ens160) which has nameservers…
user630702
  • 465
  • 6
  • 25
1
vote
1 answer

Create a tree-like structure with ansible

I have to create an LDAP structure with users and groups. The groups are a bit complex with a lot of nested groups etc. I need to create a tree like structure in my inventory, like the following: ---- user_groups: - name: AllUsers members: …
ptselios
  • 31
  • 4
0
votes
0 answers

Using 'archive_command' directive on postgres container in kubernetes 'invalid argument: "%p"

I've got Postgres 11.5-alpine running in kubernetes in a leader-follower setup that has been working well using streaming replication for some time. I've decided to cover my bases by writing the WAL archive to a shared network drive (Azure blob via…
Chris Berry
  • 101
  • 1
0
votes
1 answer

Ansible Playbook and syntax issue with variables

I'm trying to execute the below playbook I wrote but it fails on some syntax errors. I tried few things from the online doc but without sucess so far. The aim of these variable is to generate a random password to be used by the user module in a…
Nicolas
  • 15
  • 1
  • 4
0
votes
2 answers

Dynamic inventory in yaml format

Background I have domain managed via Terraform and it outputs server IP address. Then I have a script which outputs YAML inventory (outputs follows later). Ansible 2.6.2 Source of format:…
Mailo Světel
  • 213
  • 3
  • 10
0
votes
1 answer

ERROR: (gcloud.app.deploy) - python script

I am trying to deploy a python application and I am receiving the following error message: ERROR: (gcloud.app.deploy) Error Response: [4] Your deployment has failed to become healthy in the allotted time and therefore was rolled back. If you…
0
votes
1 answer

Encrypting properties with "eyaml edit" without a private key?

I would like to use eyaml edit to edit my Puppet/Hiera configuration files. My configuration files are a mixture of encrypted and plain text content. I want to use eyaml edit to encrypt certain properties. So initially my files will contain…
0
votes
1 answer

app.yaml isn't updated when I deploy (Google App Engine, Java)

This is what I put in the app.yaml file: runtime: java8 service: 'scheduler' inbound_services: - warmup derived_file_type: - java_precompiled threadsafe: True auto_id_policy: default api_version: '1.0' handlers: - url: (/.*) static_files:…
0
votes
1 answer

I want to run a.sh on remote hosts and fetch all output files. output file with timestamp. I wrote below code and it is failing with error

I want to run a.sh on remote hosts and fetch all output files. output file with timestamp. You can see below my ansible tasks. --- - name: 'abcd' hosts: 'all' gather_facts: 'false' tasks: - name : 'Copy the script to /tmp/…
Vijay
  • 3
  • 1
  • 2
0
votes
1 answer

Manage list of local users via ansible

I have Linux servers that are using local accounts and I would like to find a way, with ansible, to maintain them. My goal is to keep the same list of users on all servers and be able to efficiently delete or add a new user on all servers when there…
0
votes
2 answers

How can I make salt-api return more useful data?

salt-master: 2016.11.5 (Carbon) salt-api: 2016.11.5 (Carbon) salt-minion 2016.11.5 (Carbon) cherrypy: 10.2.2 After setting up salt-api using this tutorial I've been able to successfully use the API via curl. For example, I can move files. …
trueCamelType
  • 1,016
  • 5
  • 19
  • 41
0
votes
2 answers

Ansible match and change a bash prompt with regex

I would like to change the bash command prompt string from PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$…
David
  • 313
  • 2
  • 13