This commit is contained in:
Justin 2025-11-12 21:38:47 -06:00
parent bee972ff5f
commit e4da8e7ce6
11 changed files with 32 additions and 11 deletions

View File

@ -1,6 +1,6 @@
---
- name: Install docker
hosts: "{{ my_hosts | d([]) }}"
hosts: 192.168.1.15
become: true
tasks:

View File

@ -1,13 +1,12 @@
---
- name: Git update
hosts: localhost
- name: Git update k5bss
hosts: webhost
tasks:
- name: Git Pull
ansible.builtin.git:
repo: https://git.ki5bhv.com/justin/Ansible.git
dest: /home/justin/Ansible
repo: https://git.ki5bhv.com/justin/k5bss.com.git
dest: /var/www/k5bss.com
single_branch: yes
version: main
:

View File

@ -1,6 +1,6 @@
---
- name: Setting time zone
hosts: all
hosts: linux
become: yes
tasks:

BIN
ubuntu/.dns-flush.yaml.swp Normal file

Binary file not shown.

14
ubuntu/cleanup.yaml Normal file
View File

@ -0,0 +1,14 @@
- name: Ubuntu Server Cleanup
hosts: linux
become: true
serial: 1
tasks:
- name: Remove unused packages and dependencies
ansible.builtin.apt:
autoremove: yes
- name: Clean APT cache
ansible.builtin.apt:
clean: yes

View File

@ -1,6 +1,6 @@
---
- name: Add ssh key
hosts: all
hosts: nextcloud-docker.k5bss.com
become: true
tasks:

7
ubuntu/dns-flush.yaml Normal file
View File

@ -0,0 +1,7 @@
- name: Flush DNS Cache on Remote Hosts
hosts: all
become: yes # Requires root privileges
tasks:
- name: Flush DNS cache using resolvectl (for systemd-resolved)
ansible.builtin.command: resolvectl flush-caches

View File

View File

@ -1,6 +1,6 @@
---
- name: Install core packages for virtual machines
hosts: "{{ my_hosts | d([]) }}"
hosts: 192.168.1.15
become: true
tasks:

View File

@ -1,6 +1,6 @@
---
- name: Installing Nvim
hosts: killer-laptop.ki5bhv.com
hosts: 192.168.1.15
tasks:

View File

@ -10,6 +10,7 @@
- name: Proxmox Update and upgrade apt packages
hosts: proxmox
become: yes
serial: 1
tasks:
- name: Update packages with apt