This commit is contained in:
Justin committed 2025-09-03 20:45:17 -05:00
1 parent 79df365f95
commit bee972ff5f
6 files changed
+48 -44

No files matched your search

Binary file not shown.
View File
Whitespace-only changes.
-43
View File
@@ -63,46 +63,6 @@
ansible.builtin.command:
cmd: "rm /tmp/nvim-linux-x86_64.tar.gz"
- name: installing unzip
become: true
when: ansible_pkg_mgr == "apt"
ansible.builtin.apt:
name: unzip
state: latest
- name: Check if Font folder is there
ansible.builtin.stat:
path: ~/.local/share/fonts
register: fonts_folder
- name: Making font folder
ansible.builtin.command:
cmd: "mkdir /home/justin/.local/share/fonts"
when: fonts_folder.stat.exists != True
- name: Nerd font zip
ansible.builtin.command:
cmd: "curl -LO https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/3270.zip --output-dir /tmp"
- name: Unzipping
ansible.builtin.command:
cmd: "unzip /tmp/3270.zip -d /home/justin/.local/share/fonts/ "
- name: Font Cleanup
ansible.builtin.command:
cmd: "rm /tmp/3270.zip"
- name: installing font config
become: true
when: ansible_pkg_mgr == "apt"
ansible.builtin.apt:
name: fontconfig
state: latest
- name: Set Fonts
ansible.builtin.command:
cmd: "fc-cache -fv"
- name: installing fzf for nvim
become: true
when: ansible_pkg_mgr == "apt"
@@ -122,9 +82,6 @@
path: "~/.bashrc"
insertafter: EOF
- name: Reload bashrc
ansible.builtin.command:
cmd: "source /home/justin/.bashrc"
@@ -0,0 +1,30 @@
---
- name: Check if system reboot is required
hosts: "proxmox"
become: true
serial: 1
tasks:
- name: Check if system reboot is required
become: true
ansible.builtin.stat:
path: /run/reboot-required
register: reboot_required
- name: rebooting
become: true
ansible.builtin.reboot:
reboot_timeout: 3600
when: reboot_required.stat.exists
- name: wait for server to resert
ansible.builtin.wait_for_connection:
delay: 30
timeout: 3600
when: reboot_required.stat.exists
- name: Report if reboot is required
ansible.builtin.command:
cmd: 'curl -d "Reboot was required for {{inventory_hostname}} and it was rebooted" ntfy.ki5bhv.com/server'
when: reboot_required.stat.exists
+1 -1
View File
@@ -1,6 +1,6 @@
---
- name: Reboot machine
hosts: ["git-server.ki5bhv.com"]
hosts: ["mqtt-server.ki5bhv.com", "git-server.ki5bhv.com", "webhost.ki5bhv.com", "clouflare.ki5bhv.com", "coding.ki5bhv.com",pi-hole-server.ki5bhv.com, "killer2.ki5bhv.com"]
become: true
tasks:
+17
View File
@@ -0,0 +1,17 @@
---
- name: Rebooting Machines Proxmox
hosts: proxmox
become: true
tasks:
- name: Checking Reboot is needed
become: true
ansible.builtin.stat:
path: /run/reboot-required
register: reboot_required
- name: Reboot Machine
become: true
ansible.builtin.reboot:
reboot_timeout: 3600
when: reboot_required.stat.exists