cleans up support scripts
This commit is contained in:
34
playbooks/02-maintenance.yaml
Normal file
34
playbooks/02-maintenance.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
- name: Ensure the system is updated and potentially rebooted
|
||||
hosts: all
|
||||
roles:
|
||||
- system_update
|
||||
|
||||
- name: Ensure correct authorized_keys are deployed
|
||||
hosts: all
|
||||
roles:
|
||||
- authorized_keys
|
||||
|
||||
- name: Ensure ll alias is set
|
||||
hosts: all
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Add ll alias to /etc/bash.bashrc
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/bash.bashrc
|
||||
line: "alias ll='ls -l --color=auto'"
|
||||
state: present
|
||||
create: yes
|
||||
|
||||
- name: Clean up unused Docker data
|
||||
hosts: Docker_Hosts
|
||||
tasks:
|
||||
- name: Clean up unused Docker data
|
||||
community.docker.docker_prune:
|
||||
containers: true
|
||||
images: true
|
||||
networks: true
|
||||
volumes: true
|
||||
builder_cache: true
|
||||
become: true
|
||||
Reference in New Issue
Block a user