Skip to content

No error after nginx reload error in subsequent playbook runs #783

@strarsis

Description

@strarsis

Submit a feature request or bug report

What is the current behavior?
When nginx fails to reload after nginx config change the error is reported by ansible.
However, subsequent playbook runs do not attempt to start nginx and no indication or error is logged (all OK).

What is the expected or desired behavior?
Subsequent ansible playbook runs must attempt to start nginx and at least report that it isn't running (as in the first causing run).
Additionally, a config rollback in case of nginx failing to reload using it should be attempted.


Bug report

Please provide steps to reproduce, including full log output:

  • Intentionally introduce some syntax error in a nginx child config template.
  • Run the playbook for the first time, note the error message.
  • Run the playbook subsequent times after first time, note the absence of any error messages.
  • Log into the server as admin user, try to reload nginx, sudo service nginx reload,
    note that nginx fails to reload.

Please describe your local environment:

Ansible version: 2.2.1.0

OS: Ubuntu 16.04.2 LTS

Vagrant version: Vagrant 1.9.1

Where did the bug happen? Development or remote servers?

Development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions