diff --git a/roles/system-info/tasks/Debian.yaml b/roles/system-info/tasks/Debian.yaml index db2188a..4570051 100644 --- a/roles/system-info/tasks/Debian.yaml +++ b/roles/system-info/tasks/Debian.yaml @@ -1,5 +1,25 @@ --- -# TODO: -# cp $script_dir/system-info.service ~/.config/systemd/user/system-info.service -# systemctl --user enable system-info -# systemctl --user start system-info +- name: install apt packages + become: true + apt: + name: + - gawk + - sysstat + state: latest + +- name: create systemd user unit directory + file: + state: directory + dest: ~/.config/systemd/user + +- name: install system-info systemd unit + copy: + src: ~/.config/tmux/system-info/system-info.service + dest: ~/.config/systemd/user/system-info.service + +- name: enable system-info service + systemd: + name: system-info + scope: user + enabled: true + state: started