Skip to content

Commit

Permalink
Fixes #37733 - Add audits of ansible role changes on hosts
Browse files Browse the repository at this point in the history
This records audits when ansible role is added to a host or removed from
a host.
  • Loading branch information
adamlazik1 committed Aug 15, 2024
1 parent d2bfe11 commit be9d364
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/host_ansible_role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Join model that hosts the connection between hosts and ansible_roles
class HostAnsibleRole < ApplicationRecord
audited associated_with: :host

belongs_to_host
belongs_to :ansible_role
acts_as_list scope: :host
Expand Down

0 comments on commit be9d364

Please sign in to comment.