22 lines
480 B
YAML
22 lines
480 B
YAML
#!/usr/bin/ansible-playbook
|
|
# vim:ft=ansible:
|
|
---
|
|
- name: Configure system
|
|
block:
|
|
- name: Install packages
|
|
apt:
|
|
name:
|
|
- keepassxc
|
|
- powertop
|
|
- 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
|