Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Audit Summary is missing tag run_audit #287

Closed
xpillons opened this issue Feb 10, 2022 · 3 comments
Closed

Show Audit Summary is missing tag run_audit #287

xpillons opened this issue Feb 10, 2022 · 3 comments
Assignees
Labels

Comments

@xpillons
Copy link

The following command doesn't report the audit summary
ansible-playbook -i inventory site.yml --tags "run_audit"

Adding the tag run_audit in the tasks/main.yml like below will fix it.

- name: Show Audit Summary
  debug:
      msg: "{{ audit_results.split('\n') }}"
  when:
      - run_audit
  tags:
      - run_audit

@xpillons xpillons added the bug label Feb 10, 2022
uk-bolly added a commit that referenced this issue Feb 10, 2022
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
@uk-bolly
Copy link
Member

hi @xpillons

Thank you for spotting this and letting us know it only helps to improve the content. I have added this quick fix to a new branch that i hope will be merged by early next week into devel.

Thank you once again

uk-bolly

@uk-bolly
Copy link
Member

merged to devel.

@mcascone
Copy link

Sorry for re-opening this thread, but I am not getting an audit report, either a file or a console print, when setting the run_audit tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants