Skip to content

Nginx will not install on FreeBSD #711

Closed
@kadecole

Description

@kadecole

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:

  1. Deploy the Ansible NGINX role using playbook.yml
  2. View output/logs/configuration on ...
  3. 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']

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions