Description
Describe the bug
Install Task is skipped on FreeBSD.
TASK [nginxinc.nginx : (DragonFlyBSD/FreeBSD/HardenedBSD) Install NGINX package] ******************************************************************************** skipping: [freebsd-server]
To reproduce
Steps to reproduce the behavior:
- Deploy the Ansible NGINX role using
playbook.yml
- View output/logs/configuration on ...
- See error
skipping: [freebsd-server] => {"changed": false, "false_condition": "ansible_facts['system'] in ['DragonFlyBSD', 'FreeBSD' 'HardenedBSD']", "skip_reason": "Conditional result was False"}
Expected behavior
Nginx package should be installed.
Your environment
- Version of the Ansible NGINX role or specific commit - latest
- Version of Ansible - ansible [core 2.16.5]
- Target deployment platform - 13.3-RELEASE-p2
Additional context
There is a missing comma in the when statement in the following file on Line 18:
https://github.com/nginxinc/ansible-role-nginx/blob/main/tasks/opensource/install-bsd.yml#L18
Currently reads:
when: ansible_facts['system'] in ['DragonFlyBSD', 'FreeBSD' 'HardenedBSD']
Should read:
when: ansible_facts['system'] in ['DragonFlyBSD', 'FreeBSD', 'HardenedBSD']