diff --git a/playbooks/phone.yml b/playbooks/phone.yml index e450253..51ae442 100644 --- a/playbooks/phone.yml +++ b/playbooks/phone.yml @@ -7,3 +7,5 @@ tags: [ backups ] - role: desktop-zerotier tags: [ zerotier ] + - role: phone-common + tags: [ phone, common ] diff --git a/roles/phone-common/tasks/main.yml b/roles/phone-common/tasks/main.yml index 56ccc56..a8b0400 100644 --- a/roles/phone-common/tasks/main.yml +++ b/roles/phone-common/tasks/main.yml @@ -4,12 +4,17 @@ - name: Configure system block: - name: Install packages - apk: + apt: name: - - coreutils - - git - - htop - - ncdu - - screen - - vim + - keepassxc + - syncthing + when: ansible_os_family == "Debian" + - name: Enable services + systemd: + name: "{{ item }}" + state: started + enabled: yes + loop: + - "syncthing@{{ user_username }}.service" + when: ansible_service_mgr == "systemd" become: yes