1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 17:27:31 +00:00

Merge pull request #5464 from Samuel-BF/patch-1

Doc / Deployment with ansible: generic install
This commit is contained in:
TW 2020-11-07 17:57:50 +01:00 committed by GitHub
commit 122dfce405
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,13 +120,7 @@ Ansible
------- -------
Ansible takes care of all the system-specific commands to add the user, create the Ansible takes care of all the system-specific commands to add the user, create the
folder. Even when the configuration is changed the repository server configuration is folder, install and configure software.
satisfied and reproducible.
Automate setting up an repository server with the user, group, folders and
permissions a Ansible playbook could be used. Keep in mind the playbook
uses the Arch Linux `pacman <https://www.archlinux.org/pacman/pacman.8.html>`_
package manager to install and keep borg up-to-date.
:: ::
@ -144,7 +138,7 @@ package manager to install and keep borg up-to-date.
- host: app01.clnt.local - host: app01.clnt.local
key: "{{ lookup('file', '/path/to/keys/app01.clnt.local.pub') }}" key: "{{ lookup('file', '/path/to/keys/app01.clnt.local.pub') }}"
tasks: tasks:
- pacman: name=borg state=latest update_cache=yes - package: name=borg state=present
- group: name="{{ group }}" state=present - group: name="{{ group }}" state=present
- user: name="{{ user }}" shell=/bin/bash home="{{ home }}" createhome=yes group="{{ group }}" groups= state=present - user: name="{{ user }}" shell=/bin/bash home="{{ home }}" createhome=yes group="{{ group }}" groups= state=present
- file: path="{{ home }}" owner="{{ user }}" group="{{ group }}" mode=0700 state=directory - file: path="{{ home }}" owner="{{ user }}" group="{{ group }}" mode=0700 state=directory