Browse Source

start ansible project

for hypervisors and non nix hosts, switch to ansible for ease of existence
pull/1/head
Daniel Poelzleithner 2 years ago
parent
commit
2dcf9846ae
4 changed files with 40 additions and 0 deletions
  1. 5
    0
      ansible/ansible.cfg
  2. 5
    0
      ansible/hosts
  3. 5
    0
      ansible/hypervisor.yml
  4. 25
    0
      ansible/roles/proxmox/tasks/main.yml

+ 5
- 0
ansible/ansible.cfg View File

@@ -0,0 +1,5 @@
1
+[defaults]
2
+
3
+# some basic default values...
4
+
5
+inventory      = ./hosts

+ 5
- 0
ansible/hosts View File

@@ -0,0 +1,5 @@
1
+[hypervisor]
2
+server3.hq.c3d2.de 
3
+server4.hq.c3d2.de 
4
+server5.hq.c3d2.de
5
+server6.hq.c3d2.de   

+ 5
- 0
ansible/hypervisor.yml View File

@@ -0,0 +1,5 @@
1
+---
2
+# file: hypervisor.yml
3
+- hosts: hypervisor
4
+  roles:
5
+    - proxmox

+ 25
- 0
ansible/roles/proxmox/tasks/main.yml View File

@@ -0,0 +1,25 @@
1
+---
2
+- name: Update all packages to the latest version
3
+  apt:
4
+    upgrade: dist
5
+- name: Install packages
6
+  apt:
7
+    name: "{{ packages }}"
8
+  vars:
9
+    packages:
10
+    - zsh
11
+    - iotop
12
+    - latencytop
13
+    - htop
14
+
15
+- name: Cloning  oh-my-zsh
16
+  git:
17
+    repo=https://github.com/robbyrussell/oh-my-zsh
18
+    dest=~/.oh-my-zsh
19
+
20
+- name: Link ~/.zshrc
21
+  file:
22
+    src: /etc/pve/zshrc
23
+    dest: ~/.zshrc
24
+    state: link
25
+    force: yes

Loading…
Cancel
Save