Skip to content

Commit

Permalink
Add tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jdauphant committed Mar 6, 2014
1 parent 716e705 commit bc351a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
---
- name: Add the OS specific variables
include_vars: "{{ ansible_os_family }}.yml"
tags: ["configuration","packages","service","ntp"]

- name: Install the required packages in Redhat derivatives
yum: name={{ item }} state={{ npt_pkg_state }}
with_items: ntp_pkgs
when: ansible_os_family == 'RedHat'
tags: ["packages","ntp"]

- name: Install the required packages in Debian derivatives
apt: name={{ item }} state={{ npt_pkg_state }} update_cache=yes
with_items: ntp_pkgs
when: ansible_os_family == 'Debian'
tags: ["packages","ntp"]

- name: Copy the ntp.conf template file
template: src=ntp.conf.j2 dest=/etc/ntp.conf
notify:
- restart ntp
tags: ["configuration","packages","ntp"]

- name: Start/stop ntp service
service: name={{ ntp_service_name }} state={{ ntp_service_state }} enabled={{ ntp_service_enabled }}
tags: ["service","ntp"]

0 comments on commit bc351a4

Please sign in to comment.