The "obsession app" launcher
A simple Ansible playbook for installing a yii2-website. Preferably with a OrangePi server on armbian.
- One clean debian-server, an OrangePi for example
- User with
sshandsudo
Or any other debian-server and some knowledge of linux and Ansible to edit this playbook
- Ngnx, php-fpm, mysql, automysqlbackup and composer will be installed if not exists
/etc/nginx/sites-enabled/obsession.conffile and/var/www/obsessiondir will be created- Database
accountand userobsessionwill be created in Mysql - Also disallows a remote access for
rootin Mysql
So you must be sure this changes (and maybe some else) wouldn't cause any damage on your server. If it's clean OrangePi item - they won't.
- Find out
ipof your server. Let's say it's192.168.1.100 - Put it in
inventory.config - And uncomment lines in there
- Create a user with username
hackeron your server or replacehackerwith your own username ininventory.config,webserver.ymlandroles/mysql/vars/main.yml (also mysql_user_home)files - Run
ansible-playbook webserver.yml --ask-become-pass -v -i inventory.config - Place this line
192.168.1.100 obsession.wfin your/ets/hosts - Open
http://obsession.wfin your browser
If you're getting error "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable":
ssh-add ssh-copy-id <yourUsername>@<serverIp>and try again
- Install it as a usual website