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
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": {