mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-14 03:40:05 +00:00
46 lines
1016 B
YAML
46 lines
1016 B
YAML
---
|
|
- 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
|
|
- fail2ban
|
|
- goaccess
|
|
- htop
|
|
- zsh # :D
|
|
- python3-certbot-nginx
|
|
|
|
- name: Setup default shell (zsh)
|
|
shell: chsh -s /usr/bin/zsh
|
|
|
|
- name: Clone Powerlevel10k theme
|
|
git:
|
|
repo: "https://github.com/romkatv/powerlevel10k.git"
|
|
dest: "/root/powerlevel10k"
|
|
depth: 1
|
|
|
|
- name: Install .zshrc
|
|
copy:
|
|
src: templates/.zshrc
|
|
dest: /root/.zshrc
|
|
force: no |