Start using borg backup

This commit is contained in:
Bertrand Benjamin 2018-08-24 16:25:01 +02:00
parent f0d3c564e9
commit b29205618e
2 changed files with 24 additions and 0 deletions

View File

@ -16,6 +16,7 @@
- include: tasks/arch_gnome.yml - include: tasks/arch_gnome.yml
- include: tasks/arch_graphicals.yml - include: tasks/arch_graphicals.yml
- include: tasks/dotfiles.yml - include: tasks/dotfiles.yml
- include: tasks/borg_backup.yml
handlers: handlers:
- name: restart sshd - name: restart sshd

23
tasks/borg_backup.yml Normal file
View File

@ -0,0 +1,23 @@
---
- name: Install sudo
pacman:
name: sudo
state: present
- name: Configure sudoers
template:
src: files/sudoers
dest: /etc/sudoers
mode: 0440
- name: Create sudo group
group:
name: sudo
state: present
- name: Add local user to sudo group
user:
name: "{{ item.username }}"
groups: sudo
append: yes
with_items: '{{ deploy_users }}'