-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from appcanary/j0ni/update-for-yaml
Update for YAML configuration
- Loading branch information
Showing
4 changed files
with
8 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
api_key = "{{api_key}}" | ||
api_key: "{{api_key}}" | ||
|
||
watchers: | ||
{% if monitor_system_packages and ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian' %} | ||
[[files]] | ||
path = "/var/lib/dpkg/status" | ||
- path: "/var/lib/dpkg/status" | ||
{% endif %} | ||
|
||
{% if monitor_system_packages and ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7' %} | ||
[[files]] | ||
process = "rpm -qa" | ||
- command: "rpm -qa" | ||
{% endif %} | ||
|
||
{% for file in monitored_files %} | ||
[[files]] | ||
path = "{{ file }}" | ||
- path: "{{ file }}" | ||
{% endfor %} |