diff --git a/roles/units/handlers/main.yml b/roles/units/handlers/main.yml deleted file mode 100644 index 9bfdb2f..0000000 --- a/roles/units/handlers/main.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- name: restart units_cur - service: name=units_cur.timer state=restarted - when: units.run_on == "all" diff --git a/roles/units/meta/main.yml b/roles/units/meta/main.yml index 6b0addd..49c0cc6 100644 --- a/roles/units/meta/main.yml +++ b/roles/units/meta/main.yml @@ -1,4 +1,3 @@ --- dependencies: - { role: nmtrust } - - { role: systemd } diff --git a/roles/units/tasks/main.yml b/roles/units/tasks/main.yml index 1dcad76..a6eaaed 100644 --- a/roles/units/tasks/main.yml +++ b/roles/units/tasks/main.yml @@ -9,22 +9,7 @@ tags: - aur -- name: Push GNU Units currency update service file - template: - src: units_cur.service.j2 - dest: /etc/systemd/system/units_cur.service - notify: - - reload systemd config - -- name: Push GNU Units currency update timer file - template: - src: units_cur.timer.j2 - dest: /etc/systemd/system/units_cur.timer - notify: - - reload systemd config - - restart units_cur - - include_tasks: roles/nmtrust/tasks/unit.yml vars: - unit: units_cur.timer + unit: units_currency.timer run_on: "{{ units.run_on }}"