On Fri, 9 Feb 2018 01:35:08 -0800 (PST)
Bing Hsueh <
bing.t...@gmail.com> wrote:
> > ERROR! The field 'serial' has an invalid value, which includes an
> >> undefined variable. The error was: 'batch_deploy' is undefined
Ansible is complaining that you are referencing a variable
"batch_deploy", and that it is not defined anywhere.
> inventory.yml
> ---
> deployservers:
> vars:
> deploy_batch: 1
Here, the variable is called "deploy_batch".
> playbook.yml
> ---
> - name: test rolling update by batch size
> hosts: deployservers
> serial: "{{ batch_deploy }}"
Here, the variable is called "batch_deploy". E.g. not the same as in
the inventory file (swapped batch/deploy in the name).
Best regards
--
Branko Majic
XMPP:
bra...@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
XMPP:
bra...@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.