diff --git a/handlers/main.yml b/handlers/main.yml index 9d35736..afad272 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,2 +1,7 @@ --- -# handlers file for cronie \ No newline at end of file +# handlers file for cronie +- name: restart cron + service: + name: "{{ cron_service_name }}" + state: restarted + \ No newline at end of file diff --git a/meta/main.yml b/meta/main.yml index 5d50bf4..89cf1f0 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -55,6 +55,7 @@ galaxy_info: # NOTE: A tag is limited to a single word comprised of alphanumeric characters. # Maximum 20 tags per role. -dependencies: [] +dependencies: + - ssmtp # List your role dependencies here, one per line. Be sure to remove the '[]' above, # if you add dependencies to this list. \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index 14a8169..761d0fe 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,2 +1,9 @@ --- -# tasks file for cronie \ No newline at end of file +# tasks file for cronie +- name: Install cronie + pacman: name=cronie state=present + become: yes + +- name: Enable cronie + service: name=cronie.service enabled=yes state=started + become: yes \ No newline at end of file