2020-09-02 17:41:21 -05:00
|
|
|
#!/usr/bin/ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
---
|
|
|
|
- name: Configure system
|
|
|
|
block:
|
|
|
|
- name: Install packages
|
2020-09-04 09:08:00 -05:00
|
|
|
apt:
|
2020-09-02 17:41:21 -05:00
|
|
|
name:
|
2020-09-04 09:08:00 -05:00
|
|
|
- keepassxc
|
2020-09-04 17:49:22 -05:00
|
|
|
- powertop
|
2020-09-04 09:08:00 -05:00
|
|
|
- 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"
|
2020-09-02 17:41:21 -05:00
|
|
|
become: yes
|