Skip to content
Snippets Groups Projects
Commit 27092c00 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Simplify debian-repository role

Drop rssh
parent 2359520b
No related branches found
No related tags found
No related merge requests found
logfacility = LOG_USER
allowrsync
umask = 022
......@@ -4,35 +4,14 @@
apt:
name:
- reprepro
- rssh
- unzip
state: present
tags:
- packages
- debian-repository
- rssh
- webservices
- name: ensure rssh is configured
copy:
src: rssh.conf
dest: /etc/rssh.conf
owner: root
group: root
mode: '0644'
tags:
- debian-repository
- rssh
- webservices
- name: ensure we have a repo group
group:
name: repo
system: true
state: present
tags:
- debian-repository
- webservices
- name: ensure we have a repo user
user:
......@@ -40,31 +19,7 @@
group: repo
system: true
home: /srv/repo
shell: /usr/bin/rssh
shell: /usr/bin/nologin
createhome: false
state: present
tags:
- debian-repository
- webservices
- name: ensure we can configure ssh
file:
path: /srv/repo/.ssh
state: directory
owner: repo
group: repo
mode: '0755'
tags:
- debian-repository
- webservices
- name: ensure the deploy key is authorized
copy:
src: "{{inventory_dir}}/files/deploy-keys/repo.pub"
dest: /srv/repo/.ssh/authorized_keys
owner: repo
group: repo
mode: '0644'
tags:
- debian-repository
- webservices
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment