backup client und ruby test

This commit is contained in:
root (arriane)
2017-11-04 11:11:23 +01:00
parent e086fa9c04
commit 2ba5b31642
5 changed files with 44 additions and 4 deletions

View File

@@ -2,6 +2,30 @@
common_aliases: common_aliases:
- "root: bofh@fet.at" - "root: bofh@fet.at"
common_hostname: False common_hostname: False
common_apt: False
common_rsyslog: False common_rsyslog: False
common_resolvconf: False common_resolvconf: False
# apt-get common config
common_apt: False
common_apt_repositories:
- "deb http://gd.tuwien.ac.at/opsys/linux/debian {{ ansible_distribution_release }} main contrib non-free"
- "deb http://gd.tuwien.ac.at/opsys/linux/debian/ {{ ansible_distribution_release }}-backports main contrib non-free"
- "deb http://security.debian.org/debian-security {{ ansible_distribution_release }}/updates main contrib non-free"
common_basic_packages:
- curl
- git
- htop
- iputils-ping
- mtr-tiny
- ncdu
- strace
- sudo
- tmux
- tree
- vim
- zsh
# for ansible/debian
- lsb-release
- python-apt
- python-pycurl

7
group_vars/ruby Normal file
View File

@@ -0,0 +1,7 @@
---
common_aliases:
- "root: bofh@fet.at"
common_hostname: False
common_apt: True
common_rsyslog: False
common_resolvconf: True

View File

@@ -3,3 +3,6 @@
[backupclient] [backupclient]
10.0.3.161 10.0.3.161
[ruby]
10.0.3.40

View File

@@ -14,6 +14,7 @@
- name: fetch pubickey - name: fetch pubickey
shell: "cat /home/borg_backup/.ssh/id_rsa.pub" shell: "cat /home/borg_backup/.ssh/id_rsa.pub"
register: id_rsa_pub register: id_rsa_pub
changed_when: false
- name: Add authorized key to borg backup servers - name: Add authorized key to borg backup servers
authorized_key: authorized_key:

View File

@@ -1,4 +1,4 @@
---
- hosts: backup - hosts: backup
user: root user: root
become: False become: False
@@ -11,4 +11,9 @@
become: False become: False
roles: roles:
- common - common
- backupclient - backupclient
- hosts: ruby
user: root
become: False
roles:
- common