-
Notifications
You must be signed in to change notification settings - Fork 23
Update/smartmon playbook #542
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
Conversation
3a87651
to
df0c7d3
Compare
Adds a check to ensure that cron is installed before attempting to configure the crontab.
df0c7d3
to
111d163
Compare
package: | ||
name: | ||
- smartmontools | ||
- nvme-cli | ||
- jq | ||
- "{{ 'cron' if ansible_facts['distribution'] == 'Ubuntu' else 'cronie' }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: using ansible_facts['os_family'] == 'Debian' might be more generic, but given that that we only support Ubuntu/Redhat this looks OK.
@@ -2,12 +2,13 @@ | |||
- hosts: overcloud | |||
|
|||
tasks: | |||
- name: Ensure smartmon-tools and nvme-cli is installed | |||
- name: Ensure smartmon-tools, jq, nvme-cli and cron/cronie is installed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is why I usually just put "packages" or "package dependencies" :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. Will bear in mind for next time
Ensure that cron is installed before attempting to configure crontab