Re: [ansible-project] How to use an IF Else Statement with Ansible Playbook

2020-02-21 Thread Davide Scrimieri
Please, don't do this. Register a variable and use the when condition. https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#the-when-statement On Fri, Feb 21, 2020 at 12:22 PM David Foley wrote: > Hi, > > Can Someone help with a IF Else Statment within Ansible. > > If

[ansible-project] How to use an IF Else Statement with Ansible Playbook

2020-02-21 Thread David Foley
Hi, Can Someone help with a IF Else Statment within Ansible. If i Run a a GetStatus Playbook the Register: vminfo outputs the Following: ok: [localhost] => { "vminfo": { "changed": false, "failed": false, "instance": { "runtime": {