Re: [ansible-project] Constants in ansible playbooks

2021-02-18 Thread Lars Liedtke
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

Re: [ansible-project] Constants in ansible playbooks

2021-02-17 Thread Brian Coca
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

Re: [ansible-project] Constants in ansible playbooks

2021-02-16 Thread Nuno Jordão
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

Re: [ansible-project] Constants in ansible playbooks

2021-02-16 Thread Brian Coca
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

Re: [ansible-project] Constants in ansible playbooks

2021-02-15 Thread Dick Visser
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

[ansible-project] Constants in ansible playbooks

2021-02-15 Thread livings...@gmail.com
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