Skip to content

Commit

Permalink
update readme, fix setup.sh and remove commented code from apache con…
Browse files Browse the repository at this point in the history
…fig template
  • Loading branch information
peeperklip committed Jul 23, 2021
1 parent bd6559a commit 7157841
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
# Set up a web server
My Vagrant file + Ansible files
<b>WIP. Do not rely on this on prod servers </b>

## Setup
### Fetching the raw project files
```shell
curl https://raw.githubusercontent.com/peeperklip/ansibles/master/bin/setup.sh | bash
```

### Clone of the project files
```shell
[email protected]:peeperklip/ansibles.git
```
### Fork on GitHub
In case you want to contribute commits
* Create a fork on GitHub
* Clone your fork locally

## Documentation
### Playbooks:
* ...
* playbooks/apt_upgrade.yml
* Used for the basic system maintenance
* playbooks/create_webserver.yml
* sets up an NGINX or Apache2 webserver
* playbooks/demo_file.yml
* deploys a symfony demo project (Will be deleted in the near future)

### Roles:
* ...
most roles will have their actions prefixed in their name with what they do en end with

### Misc:
* ...
* inventory/inventory.dist is an example inventory file meant to be copied and filled in
* inventory/vagrant_demo_inventory is used if you're testing these files using vagrant

### Available playbooks:
- Unzip
Expand All @@ -39,7 +55,7 @@ If you are working locally using vagrant, you need to add the line below to `/et
```
192.168.33.10 vagrant.local
```
The box required is: ubuntu 20.04
The default box expected is ubuntu 20.04

### Executing on Vagrant
```bash
Expand Down
1 change: 1 addition & 0 deletions bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ wget https://github.com/peeperklip/ansibles/archive/master.zip
unzip master.zip
rm master.zip
rm ansibles-master/README.md
rm ansibles-master/.gitignore
mv ansibles-master/* .
rmdir ansibles-master

Expand Down
6 changes: 0 additions & 6 deletions templates/serverconfig/apache2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
Require all granted
</Directory>

# uncomment the following lines if you install assets as symlinks
# or run into problems when compiling LESS/Sass/CoffeeScript assets
# <Directory /var/www/project>
# Options FollowSymlinks
# </Directory>

ErrorLog {{ error_log_location | mandatory }}
CustomLog {{ access_log_location | mandatory }} combined
</VirtualHost>

0 comments on commit 7157841

Please sign in to comment.