AETH-erial 11 tháng trước cách đây
mục cha
commit
5a7629d8a4

+ 2 - 2
ansible.cfg

@@ -73,7 +73,7 @@ collections_path=/home/aeth/.ansible/collections:/usr/share/ansible/collections
 #ask_pass=False
 
 # (boolean) This controls whether an Ansible playbook should prompt for a vault password.
-ask_vault_pass=True
+# ask_vault_pass=True
 
 # (pathspec) Colon separated paths in which Ansible will search for Cache Plugins.
 ;cache_plugins=/home/aeth/.ansible/plugins/cache:/usr/share/ansible/plugins/cache
@@ -649,7 +649,7 @@ ask_vault_pass=True
 ;export=False
 
 # (list) List of extensions to ignore when using a directory as an inventory source
-;ignore_extensions=.pyc, .pyo, .swp, .bak, ~, .rpm, .md, .txt, .rst, .orig, .ini, .cfg, .retry
+;ignore_extensions=.pyc, .pyo, .swp, .bak, ~, .rpm, .md, .txt, .rst, .orig, .ini .cfg, .retry
 
 # (list) List of patterns to ignore when using a directory as an inventory source
 ;ignore_patterns=

+ 10 - 0
files/workstations/packages.txt

@@ -1,4 +1,9 @@
 sway
+<<<<<<< HEAD
+=======
+swaybg
+pavucontrol
+>>>>>>> e7f832f (merging)
 dhcp
 alacritty
 go
@@ -14,6 +19,7 @@ kaddressbook
 korganizer
 thunderbird
 vlc
+<<<<<<< HEAD
 yay
 vscodium
 alsa-utils
@@ -24,3 +30,7 @@ wireplumber
 alsa-firmware
 htop
 nmap
+=======
+bind
+git
+>>>>>>> e7f832f (merging)

+ 6 - 6
playbook_configure_desktop.yml

@@ -5,15 +5,15 @@
     - 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"
-
-  tasks:
+    
     - name: "00: Install vim plug manager"
       ansible.builtin.include_tasks: "tasks/tasks_install_vimplug.yml"
     
-    - name: "10: INSTALL PACKAGES"
-      ansible.builtin.include_tasks: "tasks/tasks_install_packages.yml"
-
     - name: "20: SYSTEM CONFIGURATION NONSENSE"
-      ansible.builtin.include_tasks: "tasks/tasks_system_configuration_nonsense.yml"
+      ansible.builtin.include_tasks: "tasks/tasks_machine_configuration.yml"

+ 54 - 0
tasks/tasks_clone_dotfiles.yml

@@ -0,0 +1,54 @@
+---
+- name: "00: Clone the dotfiles"
+  ansible.builtin.git:
+    repo: "{{ dotfile_repo }}"
+    dest: "/home/{{ system_user }}/.config/dotfiles"
+
+- name: "05: Set fact for dotfile home"
+  ansible.builtin.set_fact:
+    dotfiles: "/home/{{ system_user }}/.config/dotfiles"
+
+- name: "10: Move them to their appropriate locations"
+  ansible.builtin.copy:
+    src: "{{ dotfiles }}/zshrc"
+    dest: "/home/{{ system_user }}/.zshrc"
+    remote_src: "yes"
+    backup: True
+
+- name: "20: Move alacritty config"
+  ansible.builtin.copy:
+    src: "{{ dotfiles }}/alacritty.yml"
+    remote_src: "yes"
+    dest: "/home/{{ system_user }}/.config/alacritty/"
+    backup: True
+
+- name: "30: Move sway config"
+  ansible.builtin.copy:
+    src: "{{ dotfiles }}/sway/config"
+    remote_src: "yes"
+    dest: "/home/{{ system_user }}/.config/sway/"
+    backup: True
+
+- name: "40: move vimrc"
+  ansible.builtin.copy:
+    src: "{{ dotfiles }}/vimrc"
+    remote_src: "yes"
+    dest: "/home/{{ system_user }}/.vimrc"
+    backup: True
+
+- name: "50: move wallpaper"
+  ansible.builtin.copy:
+    remote_src: "yes"
+    src: "{{ dotfiles }}/_dark_disco.jpeg"
+    dest: "/home/{{ system_user }}/Pictures/wallpapers/"
+
+- name: "60: Move environment file into etc"
+  become: True
+  ansible.builtin.copy:
+    remote_src: "yes"
+    src: "{{ dotfiles }}/environment"
+    dest: "/etc/environment"
+    backup: True
+
+
+

+ 0 - 3
tasks/tasks_machine_configuration/workstation/configuration.yml

@@ -1,3 +0,0 @@
----
-- name: "00: Move dotfiles to appropriate locations"
-  

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

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