initial commit

This commit is contained in:
Markus 2019-01-04 19:27:04 +01:00
commit f8b80258e3
9 changed files with 2859 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.vault_pass
__pycache__
site.retry
*.pyc

13
README.md Normal file
View File

@ -0,0 +1,13 @@
Ansible (VM Host) Freifunk Regensburg
=====================================
## Requirements
The *only* supported distribution to deploy roles on is Proxmox 5.x.
## Running Ansible
To deploy all defined roles on all servers simply run `ansible-playbook site.yml`.
To deploy only one server run `ansible-playbook -l hostname site.yml`.

10
ansible.cfg Normal file
View File

@ -0,0 +1,10 @@
[defaults]
ansible_managed = This file is managed by ansible, do not make manual changes - they may be overridden at any time.
inventory = ./hosts
library = ./library
nocows = 1
remote_user = root
roles_path = ./roles
[ssh_connection]
pipelining = true

3
hosts Normal file
View File

@ -0,0 +1,3 @@
[rz]
pve01.ffrgb ansible_host=10.90.224.11
pve02.ffrgb ansible_host=10.90.224.12

2790
roles/vmhost/files/.zshrc Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,12 @@
# completion
autoload -U compinit
compinit
# cache for the completion
zstyle ':completion::complete:*' use-cache 1
# promt
autoload -U promptinit
promptinit

View File

@ -0,0 +1,2 @@
set mouse=
set ttymouse=

View File

@ -0,0 +1,19 @@
---
- name: Install misc software
apt: name={{ item }}
with_items:
- htop
- rsync
- vim-nox
- zsh
- name: Configure misc software
copy: src={{ item.src }} dest={{ item.dest }}
with_items:
- { src: '.zshrc', dest: '/root/.zshrc' }
- { src: '.zshrc.local', dest: '/root/.zshrc.local' }
- { src: 'vimrc.local', dest: '/etc/vim/vimrc.local' }
- name: Set shell for root user
user: name=root shell=/bin/zsh

6
site.yml Normal file
View File

@ -0,0 +1,6 @@
---
- name: Setup VM hosts
hosts: all
roles:
- vmhost