ansible: modify worker playbooks
This commit is contained in:
parent
f35ce6081d
commit
10e647f9b1
@ -15,7 +15,8 @@ common_base_packages:
|
|||||||
- cifs-utils
|
- cifs-utils
|
||||||
- curl
|
- curl
|
||||||
- cups
|
- cups
|
||||||
- exa
|
- cron
|
||||||
|
# - exa
|
||||||
- git
|
- git
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python3-setuptools
|
- python3-setuptools
|
||||||
@ -25,4 +26,4 @@ common_base_packages:
|
|||||||
- vim
|
- vim
|
||||||
- whois
|
- whois
|
||||||
- jq
|
- jq
|
||||||
- net-tools
|
- net-tools
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
vm-media-100-55 ansible_host=192.168.100.55 ansible_user=tylen
|
vm-media-100-55 ansible_host=192.168.100.55 ansible_user=tylen
|
||||||
vm-tools-100-65 ansible_host=192.168.100.65 ansible_user=tylen
|
vm-tools-100-65 ansible_host=192.168.100.65 ansible_user=tylen
|
||||||
vm-network-100-75 ansible_host=192.168.100.75 ansible_user=tylen
|
vm-network-100-75 ansible_host=192.168.100.75 ansible_user=tylen
|
||||||
|
backup-vm-tahmidcloud ansible_host=tahmidcloud.com ansible_user=tylen ansible_port=42128
|
||||||
|
|
||||||
[misc]
|
[misc]
|
||||||
vm-printer-100-20 ansible_host=192.168.100.20 ansible_user=tylen
|
vm-printer-100-20 ansible_host=192.168.100.20 ansible_user=tylen
|
||||||
|
|||||||
@ -40,12 +40,27 @@
|
|||||||
- name: Reload systemd to apply changes
|
- name: Reload systemd to apply changes
|
||||||
command: systemctl daemon-reload
|
command: systemctl daemon-reload
|
||||||
|
|
||||||
|
- name: Stop Docker service
|
||||||
|
service:
|
||||||
|
name: docker
|
||||||
|
state: stopped
|
||||||
|
|
||||||
- name: Start and enable Docker
|
- name: Start and enable Docker
|
||||||
service:
|
service:
|
||||||
name: docker
|
name: docker
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
|
- name: Create cron job for Docker cleanup
|
||||||
|
cron:
|
||||||
|
name: "Docker Cleanup"
|
||||||
|
minute: "0"
|
||||||
|
hour: "4"
|
||||||
|
job: "docker system prune -a --volumes -f"
|
||||||
|
state: present
|
||||||
|
tags:
|
||||||
|
- cron
|
||||||
|
|
||||||
- name: Create a login user
|
- name: Create a login user
|
||||||
user:
|
user:
|
||||||
name: "{{ vm_username }}"
|
name: "{{ vm_username }}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user