diff --git a/tasks/main.yml b/tasks/main.yml index 0ae8a82..a93bfe9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,2 +1,22 @@ --- -- include: setup.yml +- block: + - name: Install chrony + package: + name: chrony + state: present + + - name: Deploy configuration file + template: + src: etc/chrony.conf.j2 + dest: /etc/chrony.conf + mode: 0644 + notify: __chrony_restart + + - name: Ensure service is up and running + systemd: + name: chronyd.service + state: started + daemon_reload: True + enabled: True + become: True + become_user: root diff --git a/tasks/setup.yml b/tasks/setup.yml deleted file mode 100644 index a93bfe9..0000000 --- a/tasks/setup.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -- block: - - name: Install chrony - package: - name: chrony - state: present - - - name: Deploy configuration file - template: - src: etc/chrony.conf.j2 - dest: /etc/chrony.conf - mode: 0644 - notify: __chrony_restart - - - name: Ensure service is up and running - systemd: - name: chronyd.service - state: started - daemon_reload: True - enabled: True - become: True - become_user: root