ansible
This commit is contained in:
parent
7974e36c1b
commit
b81f7e15b2
41 changed files with 1632 additions and 0 deletions
16
ansible/roles/common/tasks/main.yaml
Normal file
16
ansible/roles/common/tasks/main.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Cloud-init already handles:
|
||||
# - Package installation (fail2ban, curl, git, htop, ncdu, tree, tmux, etc.)
|
||||
# - fail2ban service enabled and started
|
||||
# - User creation (asxpi with sudo + docker, deploy with sudo + docker)
|
||||
# - SSH hardening (key-only auth, prohibit root password)
|
||||
# - Docker installation and configuration
|
||||
# - Docker image pruning cron job (weekly at 3am Monday)
|
||||
# - Directory structure creation
|
||||
#
|
||||
# This role is now for post-cloud-init configuration only
|
||||
|
||||
- name: Verify cloud-init completed successfully
|
||||
command: cloud-init status --wait
|
||||
register: cloud_init_status
|
||||
changed_when: false
|
||||
failed_when: "'done' not in cloud_init_status.stdout"
|
||||
Loading…
Add table
Add a link
Reference in a new issue