This playbook will deploy a Blogstrap blog and serve it over the web with nginx and gunicorn. It is not production ready yet, there are still some security concerns. The playbook is meant only as a technology preview so you can get started with Blogstrap.
Make sure you have Ansible installed version >= 2.4. Ansible can be executed from any machine on the network, ideally from inside a virtualenvironment. I usually run it on my laptop.
You need to have the IP of a machine you can reach over SSH. As of now, this playbook only supports CentOS 7. Set up key-based authentication to make your life easier.
You need to have a Blogstrap blog published somewhere accessible over HTTP. The playbook will clone it on your target host.
Start by cloning this repository, then edit the file hosts
to match
this:
[blogserver]
X.X.X.X
(replace X.X.X.X
with the IP address of your machine).
Then edit the file group_vars/all
to include the URL of your blog
repository.
From the root of this repository, run this:
$ ansible-playbook -i hosts site.yml