Closed kadecole closed 6 months ago
Install Task is skipped on FreeBSD.
TASK [nginxinc.nginx : (DragonFlyBSD/FreeBSD/HardenedBSD) Install NGINX package] ******************************************************************************** skipping: [freebsd-server]
Steps to reproduce the behavior:
playbook.yml
skipping: [freebsd-server] => {"changed": false, "false_condition": "ansible_facts['system'] in ['DragonFlyBSD', 'FreeBSD' 'HardenedBSD']", "skip_reason": "Conditional result was False"}
Nginx package should be installed.
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']
when: ansible_facts['system'] in ['DragonFlyBSD', 'FreeBSD' 'HardenedBSD']
Should read: when: ansible_facts['system'] in ['DragonFlyBSD', 'FreeBSD', 'HardenedBSD']
when: ansible_facts['system'] in ['DragonFlyBSD', 'FreeBSD', 'HardenedBSD']
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:
playbook.yml
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
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']