openpunk-ansible/tasks/essential.yml

38 lines
991 B
YAML
Raw Normal View History

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
- 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
- htop
- zsh # :D
2022-05-30 15:46:36 +00:00
- python3-certbot-nginx
- name: Setup default shell (zsh)
shell: chsh -s /usr/bin/zsh
- name: Clone Powerlevel10k theme
shell: git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /root/powerlevel10k
- name: Install Powerlevel10k theme
shell: echo 'source /root/powerlevel10k/powerlevel10k.zsh-theme' > /root/.zshrc