-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
134 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/clamav/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/common/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
- tests/kodi/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/mail/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/mariadb/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ on: | |
- tests/mpd/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/musicplayer/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ on: | |
- tests/nextcloud/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/nginx/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/php_fpm/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/postgresql/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/redis/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- tests/rpmfusion/** | ||
- tests/Dockerfile.j2 | ||
- tests/molecule.yml | ||
- "!**.md" | ||
|
||
jobs: | ||
Molecule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
|
||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
 | ||
|
||
This is a collection of Ansible roles for free software self-hosting. | ||
|
||
This collection mainly targets individuals or eventually small companies, but is | ||
done with professional quality standards. | ||
|
||
These roles are done with in mind: | ||
|
||
* Up to date and fully featured software. | ||
* Security. | ||
* Minimal maintenance. | ||
|
||
To achieve well the two first points, [Fedora](https://getfedora.org/) is used | ||
as the base OS because it always provides up to date versions of software and | ||
advanced security feature like SELinux by default. | ||
To again improve the security, hardening roles are applied in addition of some | ||
security configuration. | ||
To achieve the minimal maintenance, auto-updates (with auto-reboot, if required) | ||
are set for all packages every day. | ||
|
||
Of course, there are always drawbacks with all choices. In that case, it is the | ||
risk of an update that break something and makes the service unavailable. | ||
|
||
If you absolutely require a perfectly stable service with a 99.99% availability, | ||
use some other role based on stabler OS like CentOS or Debian and that install | ||
LTS software versions. | ||
No guarantee is provided with the use of these roles. | ||
|
||
## Roles | ||
|
||
For more information on roles, please refer to the | ||
[documentation](https://jgoutin.github.io/ansible_home/). | ||
|
||
### Main roles | ||
|
||
* **common**: Perform common machine initialisation task like configuring: | ||
auto-updates, firewall, NTP server, SSH and OS security hardening,... | ||
* **nextcloud**: Install a [Nextcloud](https://nextcloud.com) server. | ||
* **musicplayer**: Install a standalone music player, by default | ||
[Lollypop](https://gitlab.gnome.org/World/lollypop). | ||
* **kodi**: Install a [Kodi](https://kodi.tv) home theater personal computer. | ||
* **mail**: Install a mail server using [Postfix](http://www.postfix.org/) and | ||
[Dovecot](https://www.dovecot.org/). | ||
* **mpd**: Install a [Music Player Daemon](https://www.musicpd.org/) server. | ||
|
||
The **common** role is intended to be used with all other roles and may be | ||
required by some of them. | ||
|
||
### Dependencies roles | ||
|
||
These roles are used as main roles dependencies: | ||
|
||
* **clamav**: Install [ClamAV](https://www.clamav.net) antivirus. | ||
* **mariadb**: Install a [MariaDB](https://mariadb.org) database. | ||
* **nginx**: Install a [Nginx](https://nginx.org) web server. | ||
* **postgresql**: Install a [PostgreSQL](https://www.postgresql.org) database. | ||
* **php_fpm**: Install a [PHP-FPM](https://php-fpm.org) server. | ||
* **redis**: Install [Redis](https://redis.io) in memory data store. | ||
* **rpmfusion**: Enable [RPMFusion](https://rpmfusion.org) repositories. | ||
|
||
## Installation | ||
|
||
This collection is available on | ||
[Ansible Galaxy](https://galaxy.ansible.com/jgoutin/home). | ||
|
||
```bash | ||
ansible-galaxy collection install jgoutin.home | ||
|
||
# Dependencies | ||
ansible-galaxy role install dev-sec.mysql-hardening dev-sec.nginx-hardening dev-sec.os-hardening dev-sec.ssh-hardening | ||
``` | ||
|
||
## Example Playbook | ||
|
||
```yaml | ||
--- | ||
- hosts: all | ||
become: true | ||
collections: | ||
- jgoutin.home | ||
roles: | ||
- common | ||
- kodi | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README.md |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.