update
This commit is contained in:
parent
bee972ff5f
commit
e4da8e7ce6
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
hosts: "{{ my_hosts | d([]) }}"
|
hosts: 192.168.1.15
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Git update
|
|
||||||
hosts: localhost
|
- name: Git update k5bss
|
||||||
|
hosts: webhost
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Git Pull
|
- name: Git Pull
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
repo: https://git.ki5bhv.com/justin/Ansible.git
|
repo: https://git.ki5bhv.com/justin/k5bss.com.git
|
||||||
dest: /home/justin/Ansible
|
dest: /var/www/k5bss.com
|
||||||
single_branch: yes
|
single_branch: yes
|
||||||
version: main
|
version: main
|
||||||
|
|
||||||
:
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Setting time zone
|
- name: Setting time zone
|
||||||
hosts: all
|
hosts: linux
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Add ssh key
|
- name: Add ssh key
|
||||||
hosts: all
|
hosts: nextcloud-docker.k5bss.com
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Install core packages for virtual machines
|
- name: Install core packages for virtual machines
|
||||||
hosts: "{{ my_hosts | d([]) }}"
|
hosts: 192.168.1.15
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Installing Nvim
|
- name: Installing Nvim
|
||||||
hosts: killer-laptop.ki5bhv.com
|
hosts: 192.168.1.15
|
||||||
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
- name: Proxmox Update and upgrade apt packages
|
- name: Proxmox Update and upgrade apt packages
|
||||||
hosts: proxmox
|
hosts: proxmox
|
||||||
become: yes
|
become: yes
|
||||||
|
serial: 1
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update packages with apt
|
- name: Update packages with apt
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue