initial commit
This commit is contained in:
commit
f8b80258e3
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
.vault_pass
|
||||
__pycache__
|
||||
site.retry
|
||||
*.pyc
|
13
README.md
Normal file
13
README.md
Normal 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
10
ansible.cfg
Normal 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
3
hosts
Normal 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
2790
roles/vmhost/files/.zshrc
Normal file
File diff suppressed because it is too large
Load Diff
12
roles/vmhost/files/.zshrc.local
Normal file
12
roles/vmhost/files/.zshrc.local
Normal 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
|
2
roles/vmhost/files/vimrc.local
Normal file
2
roles/vmhost/files/vimrc.local
Normal file
@ -0,0 +1,2 @@
|
||||
set mouse=
|
||||
set ttymouse=
|
19
roles/vmhost/tasks/main.yml
Normal file
19
roles/vmhost/tasks/main.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user