Skip to content

Commit

Permalink
Merge pull request #5493 from Samuel-BF/doc-install-ansible
Browse files Browse the repository at this point in the history
Doc / Deployment with ansible: pacman -> package
  • Loading branch information
ThomasWaldmann authored Nov 9, 2020
2 parents d658fd7 + 42a6f13 commit 5d4a16b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions docs/deployment/central-backup-server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,7 @@ Ansible
-------

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
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.
folder, install and configure software.

::

Expand All @@ -144,7 +138,7 @@ package manager to install and keep borg up-to-date.
- host: app01.clnt.local
key: "{{ lookup('file', '/path/to/keys/app01.clnt.local.pub') }}"
tasks:
- pacman: name=borg state=latest update_cache=yes
- package: name=borg state=present
- group: name="{{ group }}" 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
Expand Down

0 comments on commit 5d4a16b

Please sign in to comment.