Start using borg backup
This commit is contained in:
parent
f0d3c564e9
commit
b29205618e
@ -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
23
tasks/borg_backup.yml
Normal 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 }}'
|
Loading…
Reference in New Issue
Block a user