Commit 4a9bbff3 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Use role to ensure ntp is running after upgrade.

parent f0834f9a
---
- name: Install ntp
apt: name=ntp state=latest update_cache=no
apt: name=ntp state=latest update_cache=yes
when: ansible_os_family == "Debian"
- name: Install ntp
yum: name=ntp state=latest update_cache=no
yum: name=ntp state=latest update_cache=yes
when: ansible_os_family == "RedHat"
- name: ensure ntp is runing
......
......@@ -10,7 +10,7 @@
- settings/vifib.yml
roles:
- { role: package, package_name: ntp, package_state: latest }
- ntp
- { role: package, package_name: wget, package_state: latest }
- { role: package, package_name: openssl, package_state: latest }
- { role: package, package_name: ca-certificates, package_state: latest }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment