Files
vmn-ansible/playbooks/maintain.yaml
T

24 lines
838 B
YAML

---
- name: Deploy and set up an LXC container in Proxmox
hosts: all
remote_user: ansible
vars_files:
../inventory/group_vars/all/secrets.yaml
vars:
ansible_user_passwd_hash: "{{ ansible_password | password_hash('sha512', 's3edscrj45e6r') }}"
user_passwd_hash: "{{ user_password | password_hash('sha512', 's3ed6123jhgcr') }}"
roles:
# Check the Internet connection
# Check free disk space
- ../roles/common_healthcheck
# Ensure that all the required packages are installed
- ../roles/base_system
# Update the system
- ../roles/update_system
# Harden SSH - we must be sure that the last version of ssh configs are distributed
- ../roles/harden_ssh
# Update configs - omz, nvim, ranger and so on. Distribute the last version of those configs
- ../roles/update_configs