This role will install the following:
- PHP 7.1
- NodeJS 8.x (including npm and yarn)
- MariaDB 10.2
- Caddy
- Redis 4.0.8
This is role is successfully tested on Centos 7.
Before executing Weaver, you must first check the default values of Weaver located in defaults/main.yml
. You can change the values if you want.
Follow these steps if you're going to install packages to other server/s:
- Create a SSH Key by running this command.
ssh-keygen -t rsa
- Then copy the ssh key.
ssh-copy-id user@hostname
. For this example I will be using user root and a hostname localhost.
ssh-copy-id root@localhost
-
Git clone this repo.
-
Then inside the Weaver directory, create a playbook, inventory file, and an ansible configuration file.
-
Name your playbook file
playbook.yml
or anything you want. Copy this into your playbook file -
Name your inventory file
hosts
orinventory
. Copy this into your inventory file -
Add a file named
ansible.cfg
. Copy this into your ansible.cfg
- Then run this command inside the directory of Weaver
ansible-playbook -K playbook.yml
If you're going to run Ansible in you local machine. Run this command in your terminal. You can skip steps 1 & 2 in perfoming this command.
ansible-playbook playbook.yml --connection=local
You can also choose what to be installed. The main task is located in tasks/main.yml
.Just uncomment #
the task you don't want to be installed.
MIT
If you are new to Ansible. Read their docs. If your looking for tutorials about Ansible. Check this youtube channel.