0
0
vps-set-up-playbook/set-up.yaml

52 lines
1.1 KiB
YAML
Raw Normal View History

2023-11-11 02:06:42 +08:00
---
- name: Set up VPS
2023-11-17 03:02:20 +08:00
hosts: oracle,vultr
2023-11-13 11:47:39 +08:00
# gather_facts: true
2023-11-11 02:06:42 +08:00
vars_files:
2023-11-13 11:47:39 +08:00
- vars/secrets.yaml
2023-11-11 02:06:42 +08:00
become: true
# ----------------------------------------------------------------------------------------------------
pre_tasks:
2023-11-25 08:10:49 +08:00
# - name: Install packages
# apt:
# name:
# - iputils-ping
# - cron
# - fzf
# - git
# - curl
# - zip
# - unzip
# - trash-cli
# state: latest
# install_recommends: false
# update_cache: true
# autoclean: true
# autoremove: true
2023-11-11 02:06:42 +08:00
2023-11-14 00:06:09 +08:00
- name: Touch .hushlogin
file:
path: "/home/{{ user }}/.hushlogin"
state: touch
2023-11-25 08:10:49 +08:00
2023-11-11 02:06:42 +08:00
# ----------------------------------------------------------------------------------------------------
roles:
2024-01-23 08:03:31 +08:00
# - grub-opnxng
2023-11-25 08:10:49 +08:00
# - disable-root
# - timezone
# - chrony
# - hostname
2024-05-25 14:25:38 +08:00
# - systemd-resolved
2023-11-25 08:10:49 +08:00
# - sources-list
# - ssh
2024-05-25 14:25:38 +08:00
- ufw-opnxng
2023-11-25 08:10:49 +08:00
# - fail2ban
# - unattended-upgrades
# - nfs-opnxng
# - docker
# - set-vm-overcommit-memory
2024-01-23 08:03:31 +08:00
# - docker-buildx