- docker
- docker-compose or
- python
- ansible installed for your local machine
- AppArmor
- Auditd
- Cron
- Iptables
- journald
- sshd
- sysctl
- timesyncd
- fail2ban
- docker and docker-compose
- create user
- off root login
- remove unnecessary services
cp inventory.example inventory
- You need to change these variables in the inventory file to
- debian -> Ip address or hostname
- ansible_user=test -> The name of the user by which we will initiate the server. Ideally, it should be root or a user in the sudo group
- ansible_ssh_pass=test -> Password to user above
- You must replace in the vps.yml this value
- username -> The username to which we will be logging in
- password -> Hash of your password. To create it you need to run this
command
make create_password PASS=<your password>
make start
ordocker-compose up -d
make bash
ordocker exec -it <container id> bash
ansible-playbook -i inventory vps.yml
- If we want to install the selected modules then
ansible-playbook -i inventory vps.yml --tags "user,docker"
ansible-galaxy install -r requirements.yml
ansible-playbook -i inventory vps.yml
- If we want to install the selected modules then
ansible-playbook -i inventory vps.yml --tags "user,docker"
make help
Q: Where can I get knowledge in linux administration ? ?
A: Collection of knowledge mikrus