Просмотр исходного кода

new server additions after my proxmox install

aeth 7 месяцев назад
Родитель
Сommit
96bec7acd7

+ 4 - 0
files/packages.txt

@@ -0,0 +1,4 @@
+zsh
+zplug
+curl
+

+ 1 - 0
files/servers/dns/packages.txt

@@ -0,0 +1 @@
+bind9

+ 4 - 3
inventory

@@ -4,10 +4,11 @@ workstations:
     voodoo-box.void:
     BLACKMESA.void:
     spit-wizard.void:
-virtualization:
+containers:
   hosts:
-    adeptus-mechanicus.void:
-    matsumoto.void:
+    horus-ctn01.void:
+    horus-ns01.void:
+    horus-ns02.void:
 dns_servers:
   hosts:
     minas-tirith.void:

+ 1 - 1
playbook_configure_desktop.yml

@@ -1,6 +1,6 @@
 ---
 - name: "Configuring desktops"
-  hosts: "workstations"
+  hosts: "workstation"
   pre_tasks:
     - name: "00: Gather facts"
       ansible.builtin.gather_facts:

+ 19 - 0
playbook_configure_virt_server.yml

@@ -0,0 +1,19 @@
+---
+- name: "Configuring container servers"
+  hosts: "containers"
+  pre_tasks:
+    - name: "00: Gather facts"
+      ansible.builtin.gather_facts:
+
+  tasks:
+    - name: "10: INSTALL PACKAGES"
+      ansible.builtin.include_tasks: "tasks/tasks_install_packages.yml"
+
+    - name: "00: PRE-TASK clone dotfiles"
+      ansible.builtin.include_tasks: "tasks/tasks_clone_dotfiles.yml"
+    
+    - name: "00: Install vim plug manager"
+      ansible.builtin.include_tasks: "tasks/tasks_install_vimplug.yml"
+
+    - name: "20: SYSTEM CONFIGURATION NONSENSE"
+      ansible.builtin.include_tasks: "tasks/tasks_machine_configuration.yml"

+ 5 - 0
tasks/tasks_machine_configuration/containers/configuration.yml

@@ -0,0 +1,5 @@
+---
+- name: "00: Set default shell to ZSH"
+  become: True
+  ansible.builtin.command: "chsh -s /usr/bin/zsh {{ system_user }}"
+

+ 1 - 1
tasks/tasks_machine_configuration/workstations/configuration.yml

@@ -1,5 +1,5 @@
 ---
 - name: "00: Set default shell to ZSH"
   become: True
-  ansible.builtin.command: "chsh -s /usr/bin/zsh aeth"
+  ansible.builtin.command: "chsh -s /usr/bin/zsh {{ system_user }}"