DevOps Classroom notes 29/Jul/2025

YAML

  • YAML is a data representation format.
  • Refer Here for yaml syntax from ansible
  • YAML use name value pair as a representational format.
<name>: <value>
  • Values come in many forms
    • number
    • text
    • boolean
    • list/array
    • map/object
  • number
year: 2025
price: 10.5
  • text
day: tuesday
day: 'tuesday'
day: "tuesday"
price: '10.5'
  • boolean
holiday: False
holiday: No
workingday: True
workingday: Yes
  • list/array
remainingdays: ['tue', 'wed', 'thu', 'fri']
remainingdays:
- tue
- wed
- thu
- fri
remainingdays:
  - tue
  - wed
  - thu
  - fri
  • map/object
address:
  flat: 601A
  building: Nilgiri
  city: Hyderabad
  landmark: 500030
  • Multiline text
include_newlines: |
            exactly as you see
            will appear these three
            lines of poetry

fold_newlines: >
            this is really a
            single line of text
            despite appearances

Example

  • movie
---
movies:
  - name: Superman
    release: 2025
    category: Action/Sci-fi
    duration: 130
    summary: from dc
    director: James Gunn
    actors:
      - David Corenswet
      - Rachel Brosnahan
  - name: 'The Fantastic Four: First Steps'
    release: 2025
    category: Action/Sci-fi
    duration: 115
    summary: from marvel
    director: Matt Shakman
    actors:
      - Pedro Pascal
      - Vanessa Kirby
  • Try to write a yaml about your laptop
---
model: dell lattitue
manufacturer: dell
specifications:
  cpu: intel i7 12 Gen
  ram: 64GB
  disk: 500 GB SSD
features:
  boot: 
    - TPM
    - UEFI
  others:
    - fingerprint
    - faceid
  • Try writing a yaml file describing your bike/car
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%