emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Steven Harris <steve@stevenharris.info>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Beginning with org-babel.
Date: Fri, 25 Feb 2022 12:20:03 +1100	[thread overview]
Message-ID: <CAFBwRkKmKksNvC98cSdbtVXPVd2HZtqT3PZWmgpNeXctwZq2-A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]

Hi All

Ansible is a system configuration-management tool that is based on
"playbooks".  These are collections of mostly YAML files, but also Jinja2
templates and unix configuration files.  To execute one needs to run a unix
shell command with a python virtualenv set up and usually some environment
variables set.

Painfully much of this lives fragmented in a nested directory structure,
many of the files in which are named "main.yml".   Sometimes  the same
information has to be set in two places with incompatible formats , such as
a config file and an environment variable.

I am trying to bring some literate programming to bear on this can of worms
so have reached for Babel.  It's my first use of it.

The current problem is that I have a config file that I want to substitute
a value into.  I want the conf-mode highlighting.  Conf is not a
programming language of course, just a text format.

I'm trying something like

#+begin_src conf :tangle yes :noweb yes
  private_key_file = <<ssh_private_key_file>>

I have tried something similar to the SQL comment example in the
documentation to no avail and also setting :var headers. How can I
substitute a value here?



[-- Attachment #2: Type: text/html, Size: 1426 bytes --]

             reply	other threads:[~2022-02-25  1:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-25  1:20 Steven Harris [this message]
2022-02-25  2:08 ` Beginning with org-babel William Denton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFBwRkKmKksNvC98cSdbtVXPVd2HZtqT3PZWmgpNeXctwZq2-A@mail.gmail.com \
    --to=steve@stevenharris.info \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).