how should place these playbooks and what should be the order. Below is my
role .
https://github.com/sameergithub5/prometheusrole
On Monday, November 6, 2023 at 8:43:58 PM UTC+5:30 Brian Coca wrote:
> roles can be in plays, plays cannot be in roles
>
>
> --
> --
> Brian Coca
>
>
--
Good day, all.
I want to add the following line to a file:
_some-name TXT
"aZJACEhonRJiOCL1ZtkKMKnx7U4m5jbSswyClGb6wGk"
I would think I'd use the following:
lineinfile: dest=/var/named/chroot/var/named/trioboiler.com.hosts
insertafter=EOF line="_acme-challe
Good day, all.
I want to add the following line to a file:
_some-name TXT
"aZJACEhonRJiOCL1ZtkKMKnx7U4m5jbSswyClGb6wGk"
I would think I'd use the following:
lineinfile: dest=/somedir/somefile insertafter=EOF line="_acme-challenge
Good day, all.
I want to add the following line to a file:
_some-name TXT
"aZJACEhonRJiOCL1ZtkKMKnx7U4m5jbSswyClGb6wGk"
I would think I'd use the following:
lineinfile: dest=/somedir/somefile insertafter=EOF line="_acme-challenge
Pllaybooks can contain plays, plays can contain tasks, blocks and
roles, but you cannot reverse the direction of 'containers'.
You CANNOT have a play in a role, so your question is a non starter.
You have to write a playbook with multiple plays.
--
--
Brian Coca
--
You received this me
Single-quoted strings can contain double-quotes. So instead of
line="something ending with a "double-quoted string""
do this:
line='something ending with a "double-quoted string"'
On 11/10/23 8:33 AM, Dimitri Yioulos wrote:
Good day, all.
I want to add the following line to a file:
_some-n
Thanks, Todd. I already tried that, and it fails:
[WARNING]: Invalid characters were found in group names but not replaced,
use - to see
details
[WARNING]: Found both group and host with same name: uoj
ERROR! We were unable to read either as JSON nor YAML, these are the errors
we got from ea
"lineinfile" should line up with "name" above. The "lineinfile:" is the
mapping that it's complaining cannot be indented more than "name:". Such
indentation creates a new context. Thus the message, "mapping values are
not allowed in this context".
Is there a reason to use the "key=value" forma