Skip to content

Improve idempotence of ansible playbooks w.r.t. apache logging #3614

Open
@heartsucker

Description

@heartsucker

Description

Reporting this here while documenting TODOs (#724).

From install_files/ansible-base/roles/app-test/tasks/staging_wsgi_files.yml:

# TODO: This staging-only template clobbers the production template
# installed by the `app` role. That means the app-staging host
# will always mark the task as changed. It would be cleaner to merge
# the templates and use group_vars to conditionally enable the logging
# for staging, defaulting to no logging for safety.
- name: Enable logging for Source Interface.
  copy:
    src: source.wsgi.logging
    dest: /var/www/source.wsgi
    owner: "{{ apache_user }}"
    mode: "0640"
  tags:
    - apache

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions