Skip to content

Instantly share code, notes, and snippets.

@mbukatov
Last active February 23, 2018 15:04
Show Gist options
  • Save mbukatov/b5098d2b4b984687c74a5be2a504d8f3 to your computer and use it in GitHub Desktop.
Save mbukatov/b5098d2b4b984687c74a5be2a504d8f3 to your computer and use it in GitHub Desktop.
ansbile check if ntp package is installed
- name: Check if ntp is installed
command: rpm -q ntp
register: rpm_q_ntp
changed_when: False
failed_when: rpm_q_ntp.rc > 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment