openpunk-ansible/roles/essential/tasks/main.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

2022-05-30 15:46:36 +00:00
---
# TODO: make idempotent
2022-05-30 15:46:36 +00:00
- name: Add Gitea repo key
shell: curl -s https://packaging.gitlab.io/gitea/gpg.key | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/morph027-gitea.gpg --import
# TODO: make idempotent
2022-05-30 15:46:36 +00:00
- name: Set key perms
shell: sudo chmod 644 /etc/apt/trusted.gpg.d/morph027-gitea.gpg
- name: Add Gitea repo
apt_repository:
filename: morph027-gitea
repo: deb https://packaging.gitlab.io/gitea gitea main
- name: Upgrade Packages
apt:
update_cache: yes
upgrade: full
- name: Install required software
package:
name:
- hugo
- gitea
- git
- nginx
- tor
- ufw
2022-06-08 19:23:15 +00:00
- fail2ban
2022-08-02 18:32:19 +00:00
- goaccess
2022-05-30 15:46:36 +00:00
- htop
- zsh # :D
2022-05-30 15:46:36 +00:00
- python3-certbot-nginx
# TODO: make idempotent
- name: Setup default shell (zsh)
shell: chsh -s /usr/bin/zsh
- name: Clone Powerlevel10k theme
2022-05-31 04:36:55 +00:00
git:
repo: "https://github.com/romkatv/powerlevel10k.git"
dest: "/root/powerlevel10k"
depth: 1
2022-05-31 04:36:55 +00:00
- name: Install .zshrc
copy:
src: .zshrc
dest: /root/.zshrc
force: no