Timeline for Ansible - when statement task always return false value
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 12, 2019 at 7:33 | vote | accept | mbb | ||
Aug 12, 2019 at 7:33 | comment | added | mbb | Thank you for response and apologies I couldn't answer earlier. By checking ansible hosts with the command you proposed I got the following information: "ansible_distribution_major_version": "2018" for the Amazon v1 AMI and "ansible_distribution_major_version": "2" for the Amazon 2 AMI. According to that I updated my if statements in the Ansible playbook and everything works as it should. Thank you for answers. Next time, when I create the question topic I would provide MCVE immediately. | |
Aug 10, 2019 at 23:01 | history | answered | Zeitounator | CC BY-SA 4.0 |