You could create a yaml file e.g. contants.yml and the include that via
commandline parameter with -e '@constants.yml'
Am 17.02.21 um 15:33 schrieb Brian Coca:
> correct
--
---
punkt.de GmbH
Lars Liedtke
.infrastructure
Kaiserallee 13a
76133 Karlsruhe
Tel. +49 721 9109 500
correct
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on
but extra_vars are only defined as a command line parameter, right?
On Tue, Feb 16, 2021 at 8:45 PM Brian Coca wrote:
> extra_vars are not overridable and could be considered constants.
>
> --
> --
> Brian Coca
>
> --
> You received this message because you are subscribed to the Google
extra_vars are not overridable and could be considered constants.
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
On Tue, 16 Feb 2021 at 06:03, livings...@gmail.com <
livingstone@gmail.com> wrote:
> Hi,
>
> During a recent code review of an ansible playbook, I noticed one dev
> using variables defined in playbook group_vars/all.yml as constants. This
> is inline with general coding guideline of replacing
Hi,
During a recent code review of an ansible playbook, I noticed one dev using
variables defined in playbook group_vars/all.yml as constants. This is
inline with general coding guideline of replacing magic numbers/literals
with constants as per the Clean Code