diff --git a/group_vars/all b/group_vars/all index 7853d54..7e41177 100644 --- a/group_vars/all +++ b/group_vars/all @@ -2,6 +2,30 @@ common_aliases: - "root: bofh@fet.at" common_hostname: False -common_apt: False + common_rsyslog: False -common_resolvconf: False \ No newline at end of file +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 diff --git a/group_vars/ruby b/group_vars/ruby new file mode 100644 index 0000000..226834f --- /dev/null +++ b/group_vars/ruby @@ -0,0 +1,7 @@ +--- +common_aliases: + - "root: bofh@fet.at" +common_hostname: False +common_apt: True +common_rsyslog: False +common_resolvconf: True \ No newline at end of file diff --git a/hosts/production b/hosts/production index 7ce8a9b..d3d31b7 100644 --- a/hosts/production +++ b/hosts/production @@ -3,3 +3,6 @@ [backupclient] 10.0.3.161 + +[ruby] +10.0.3.40 \ No newline at end of file diff --git a/roles/backupclient/tasks/borg.yml b/roles/backupclient/tasks/borg.yml index 7610993..83a7122 100644 --- a/roles/backupclient/tasks/borg.yml +++ b/roles/backupclient/tasks/borg.yml @@ -14,6 +14,7 @@ - name: fetch pubickey shell: "cat /home/borg_backup/.ssh/id_rsa.pub" register: id_rsa_pub + changed_when: false - name: Add authorized key to borg backup servers authorized_key: diff --git a/site.yml b/site.yml index 8ccae5e..b512688 100644 --- a/site.yml +++ b/site.yml @@ -1,4 +1,4 @@ - +--- - hosts: backup user: root become: False @@ -11,4 +11,9 @@ become: False roles: - common - - backupclient \ No newline at end of file + - backupclient +- hosts: ruby + user: root + become: False + roles: + - common \ No newline at end of file