From d8fc57407067e3d4e08ca130b0a64322e894a97b Mon Sep 17 00:00:00 2001 From: Conrad Hodge Date: Tue, 5 Dec 2023 16:12:12 +0000 Subject: [PATCH] Add tmpreaper and QDirSTat --- README.md | 4 +++- ansible/roles/wsl/tasks/main.yml | 1 + ansible/roles/wsl/tasks/tmpreaper.yml | 6 ++++++ ansible/roles/wsl/vars/main.yml | 2 ++ 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/wsl/tasks/tmpreaper.yml diff --git a/README.md b/README.md index f1d8567..4d3b3d1 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ This will: - Setup [zsh](https://www.zsh.org/) and [oh-my-zsh](https://ohmyz.sh/) for terminal - Perform an `apt` update and upgrade -- Install the following `apt` packages: +- Install the following: - curl - zip - [jq](https://stedolan.github.io/jq/) @@ -46,7 +46,9 @@ This will: - [Go](https://golang.org/) - [pip and venv](https://docs.microsoft.com/en-us/windows/python/web-frameworks#install-python-pip-and-venv) - [ngrok](https://ngrok.com/) + - [tmpreaper](https://manpages.ubuntu.com/manpages/focal/man8/tmpreaper.8.html) - [Java Runtime Environment from OpenJDK](https://ubuntu.com/tutorials/install-jre#1-overview) + - [QDirStat](https://github.com/shundhammer/qdirstat) - [GitHub CLI](https://cli.github.com/) - [AWS CDK CLI](https://github.com/aws/aws-cdk) - [AWS CLI](https://aws.amazon.com/cli/) diff --git a/ansible/roles/wsl/tasks/main.yml b/ansible/roles/wsl/tasks/main.yml index 4d848e6..d946b56 100644 --- a/ansible/roles/wsl/tasks/main.yml +++ b/ansible/roles/wsl/tasks/main.yml @@ -10,4 +10,5 @@ - import_tasks: aws.yml - import_tasks: azure.yml - import_tasks: liquibase.yml +- import_tasks: tmpreaper.yml - import_tasks: cows.yml diff --git a/ansible/roles/wsl/tasks/tmpreaper.yml b/ansible/roles/wsl/tasks/tmpreaper.yml new file mode 100644 index 0000000..40abf6d --- /dev/null +++ b/ansible/roles/wsl/tasks/tmpreaper.yml @@ -0,0 +1,6 @@ +--- +- name: Run tmpreaper in zshrc to clean the tmp directory + lineinfile: + path: "$HOME/.zshrc" + line: 'tmpreaper 7d /tmp' + state: present \ No newline at end of file diff --git a/ansible/roles/wsl/vars/main.yml b/ansible/roles/wsl/vars/main.yml index 3cf2eb5..dcf865d 100644 --- a/ansible/roles/wsl/vars/main.yml +++ b/ansible/roles/wsl/vars/main.yml @@ -13,6 +13,8 @@ apt_packages: - python3-venv - zsh - default-jre + - tmpreaper + - qdirstat node_packages: - aws-cdk