{"id":15022002,"url":"https://github.com/confuzeus/ansible-plausible","last_synced_at":"2025-04-11T22:08:00.042Z","repository":{"id":163114890,"uuid":"457880966","full_name":"confuzeus/ansible-plausible","owner":"confuzeus","description":"Setup your Plausible instance in a few minutes.","archived":false,"fork":false,"pushed_at":"2022-02-20T08:52:29.000Z","size":27,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T22:07:55.158Z","etag":null,"topics":["analytics","ansible","ansible-playbook","ansible-role","ansible-roles","automation","debian","devops","linux","plausible-analytics","privacy","privacy-tools"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/confuzeus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-10T17:31:48.000Z","updated_at":"2024-09-13T15:31:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b13732d-8eae-4c79-aa9f-34ff8be915f6","html_url":"https://github.com/confuzeus/ansible-plausible","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"20a86e33701a47ac8446c70e98816c44074873a0"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confuzeus%2Fansible-plausible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confuzeus%2Fansible-plausible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confuzeus%2Fansible-plausible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confuzeus%2Fansible-plausible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/confuzeus","download_url":"https://codeload.github.com/confuzeus/ansible-plausible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487713,"owners_count":21112191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","ansible","ansible-playbook","ansible-role","ansible-roles","automation","debian","devops","linux","plausible-analytics","privacy","privacy-tools"],"created_at":"2024-09-24T19:57:19.116Z","updated_at":"2025-04-11T22:08:00.010Z","avatar_url":"https://github.com/confuzeus.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Plausible\n\nSetup your own [Plausible Analytics](https://plausible.io) instance in a few minutes.\n\nBuying a subscription is the easiest way to get started with Plausible but this Ansible\nplaybook makes it easier for DIYers to self host an instance.\n\n## Requirements\n\n1. A server with Debian 11 installed.\n2. A domain name managed at Cloudflare.\n3. Your Cloudflare api token.\n4. Email address with SMTP access.\n\n## Quick start\n\nSetup your ssh connection first. Edit your `~/.ssh/config` on your local machine like so:\n\n\n```shell\nHost myhostname\n    HostName 192.168.1.1\n    User root\n    IdentitiesOnly yes\n```\n\n*HostName* will equal to your server's IP address.\n\nNow you can edit `inventory.yml` to look like this:\n\n```yaml\nall:\n  hosts: myserver\n  vars:\n    admin_username: \"myusername\"\n    plausible_port: \"10000\"\n```\n\nMake sure to copy your SSH public key to your server and enable passwordless login.\n\nNow, edit the file at `common/vars/main.yml`. Change the values are you see fit.\n\nRename the file at `common/templates/example.com.conf` and set it to `yourdomain.com.conf`.\nOr keep the example template and make a copy of it instead.\n\nNow edit the file at `plausible/vars/main.yml` and set the values as you like.\n\nAfter having setup all the variables, you can encrypt your variables files like so:\n\n```shell\nansible-vault encrypt common/vars/main.yml\nansible-vault encrypt plausible/vars/main.yml\n```\n\nIf you encrypt your variables, edit `Makefile` and set `ANSIBLE_ASK_VAULT_PASS` and\n`PLAUSIBLE_ASK_VAULT_PASS` to True.\n\nRun `make` and the play should start.\n\nOnce the play is complete, your plausible instance should be accessible at *yourdomain.com*.\n\n### Things to note\n\n- Passwords for Linux users must be hashed using `mkpasswd -m sha-512`\n\n## Installing on an existing server\n\nIf you already have a server that you use to host other stuff, you should avoid running the\n*common* role because it will destroy your Nginx configs and possibly lock you out from SSH.\n\nInstead, run `make plausible` to only install Plausible. You will need to have *docker* and\n*docker-compose* installed.\n\n## Support and feature requests\n\nFeel free to request support and features on the Github issue tracker.\n\n## License and Copyright\n\nLicense is MIT.\n\nCopyright 2022 Josh Michael karamuth \u003cmichael@confuzeus.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfuzeus%2Fansible-plausible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconfuzeus%2Fansible-plausible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfuzeus%2Fansible-plausible/lists"}