Archive:An ansible recipe for installing sesam client package via apt: Difference between revisions
(Added copyright.) |
(changed wiki preformatted text to HTML preformatted text) |
||
Line 1: | Line 1: | ||
{{Copyright SEP AG|en}} | {{Copyright SEP AG|en}} | ||
<pre> | |||
# debian | |||
$debian_version = "jessie" | |||
$debian_repo_url = "deb http://download.sep.de/linux/repositories/debian/ {{debian_version}} main" | |||
## | |||
# install sesam client package on debian related systems ## | |||
- name: Install sesam-client debian package "({{debian_version}})" | |||
hosts: | |||
- hostA | |||
- hostB | |||
gather_facts: false | |||
sudo: yes | |||
tasks: | |||
- name: add sesam apt key | |||
apt_key: | |||
url: http://download.sep.de/linux/repositories/debian/key.asc | |||
state: present | |||
- apt_repository: | |||
repo: "{{debian_repo_url}}" | |||
state: present | |||
- name: install sesam client | |||
apt: | |||
name: sesam-cli | |||
- name: Allow access of sesam server * | |||
gather_facts: false | |||
sudo: yes | |||
vars: | |||
sesam_install: "/opt/sesam/bin/sesam/" | |||
hosts: | |||
- HostA | |||
- HostB | |||
tasks: | |||
- name: allow access from any sesam server | |||
command: '{{sesam_install}}sm_setup set_client "backup_server_hostname.full_qualified_domain.com"' | |||
</pre> |
Revision as of 11:53, 26 May 2021
Copyright © SEP AG 1999-2024. All rights reserved.
Any form of reproduction of the contents or parts of this manual is allowed only with the express written permission from SEP AG. When compiling and designing user documentation SEP AG uses great diligence and attempts to deliver accurate and correct information. However, SEP AG cannot issue a guarantee for the contents of this manual.
# debian $debian_version = "jessie" $debian_repo_url = "deb http://download.sep.de/linux/repositories/debian/ {{debian_version}} main" ## # install sesam client package on debian related systems ## - name: Install sesam-client debian package "({{debian_version}})" hosts: - hostA - hostB gather_facts: false sudo: yes tasks: - name: add sesam apt key apt_key: url: http://download.sep.de/linux/repositories/debian/key.asc state: present - apt_repository: repo: "{{debian_repo_url}}" state: present - name: install sesam client apt: name: sesam-cli - name: Allow access of sesam server * gather_facts: false sudo: yes vars: sesam_install: "/opt/sesam/bin/sesam/" hosts: - HostA - HostB tasks: - name: allow access from any sesam server command: '{{sesam_install}}sm_setup set_client "backup_server_hostname.full_qualified_domain.com"'