{"id":19049984,"url":"https://github.com/everlag/homewatch-ansible","last_synced_at":"2025-11-11T20:02:27.404Z","repository":{"id":78566766,"uuid":"52771297","full_name":"Everlag/homewatch-ansible","owner":"Everlag","description":"Deploy homewatch in one command with ansible","archived":false,"fork":false,"pushed_at":"2016-02-29T07:06:43.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T00:25:09.570Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Everlag.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-02-29T07:06:21.000Z","updated_at":"2016-02-29T07:06:44.000Z","dependencies_parsed_at":"2023-03-27T23:17:54.562Z","dependency_job_id":null,"html_url":"https://github.com/Everlag/homewatch-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Everlag/homewatch-ansible","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Fhomewatch-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Fhomewatch-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Fhomewatch-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Fhomewatch-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Everlag","download_url":"https://codeload.github.com/Everlag/homewatch-ansible/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Everlag%2Fhomewatch-ansible/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283921119,"owners_count":26916743,"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","status":"online","status_checked_at":"2025-11-11T02:00:06.610Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-08T23:12:30.377Z","updated_at":"2025-11-11T20:02:27.365Z","avatar_url":"https://github.com/Everlag.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homewatch-ansible\n\nBoostrap a [homewatch](https://github.com/chocolateHszd/HomeWatch) instance on a local VM. From no VM to ready to develop should take less than two hours with the majority of time spent in non-interactive waiting.\n\nPlease note this is meant for development; production deployment with this playbook unmodified is likely to result in tears.\n\nThis repo was initially built with ansible `2.0.0.2` under cygwin. For installation, please head to the bottom.\n\n## Cygwin Installation\n\nFor cygwin, you're explicitly unsupported but it usually works! Here's what to do\n\n\t# Install, with the cygwin package installer,\n\t#\tcurl\n\t#\tpython(2.7.x)\n\t#\tpython-openssl\n\t#\tpython-crypto\n\t#\tpython-setuptools\n\t#\tgit(~2.5)\n\t#\tnano\n\t#\topenssh\n\t#\topenssl\n\t#\topenssl-devel\n\n\t# Run\n\teasy_install-2.7 pip\n\tpip install passlib\n\tpip install ansible\n\nOther platforms should follow the equivalent steps.\n\n## Initial Environment\n\nTo bootstrap homewatch using ansible using this guide, several assumptions are made for ease of use. These cannot be reasonably done from within ansible. Deviations from these assumptions may be difficult to correct.\n\n1. Ubuntu server 14.04 is installed in a VM; openSSH server was installed at some point. There should be \u003e=8GB of disk space available for an empty install.\n\n1. A user with sudo privileges is `fisher` with password `fish`.\n\n1. You're using virtualbox with guest port `22` exposed on host port `21351` and guest port `80` exposed on host port `16546`. Ports can be exposed by going to the VM's settings, Network tab, and Port Forwarding at the bottom of the adapter config panel.\n\n1. You've run `aptitude update \u0026\u0026 aptitude -y upgrade`. If you don't upgrade, you will get some nasty errors that you don't want to deal with. This will take a long time so read a book or something.\n\nAt this point, `ssh -p 21351 fisher@localhost` should get you into a brand new install of ubuntu. You should do this to register the VM's keypair.\n## One Off Config\n\nBootstrapping a server into this ansible config is relatively painless.\n\nIn inventory.antsy.ini, replace the default `localhost:21351` with the correct `server:port` line if you deviated from the post established above.\n\nPerform a connection test using `ansible all -m ping --ask-pass -i inventory.antsy.ini -u fisher --ask-pass --ask-sudo-pass --ask-become-pass -c paramiko`\n\n## Usage\n\nRun\n\n\tansible-playbook bootstrap.yml -i inventory.antsy.ini -u fisher --ask-pass --ask-sudo-pass --ask-become-pass -c paramiko\n\nto bootstrap homewatch. This should handle using cygwin and password authentication without issues. You'll be prompted for the same password twice then the rest of the process should be non-interactive.\n\nWhen the playbook completes, you should be able to access homewatch at [localhost:16546/HomeWatch/](http://localhost:16546/HomeWatch/)\n\n## Security\n\nThe aim of this repo is to be explicitly easy to develop on, do not expect this to be secure in any way for production deployments.\n\nIf you're exposing a system that's using this playbook to anything potentially hostile, its probably a good idea to change the mysql root password after using this to bootstrap. To do so, change the root password as usual in mysql then change the homewatch password in `/var/www/HomeWatch/www/config/config.local.php`.\n\nYou'll probably want to tighten permissions in `/var/www/HomeWatch/` as well as change passwords.\n\n## Misc\n\n### Password Authentication\n\nAnsible likes to use sshkeys because they are better in every way. If you're a gristly curmudgeon, append `--ask-pass --ask-sudo-pass --ask-become-pass -c paramiko` to any command to use passwords. This command means that you supply a password for both ssh and sudo upfront and explicitly avoid a dependency on sshpass.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverlag%2Fhomewatch-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feverlag%2Fhomewatch-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feverlag%2Fhomewatch-ansible/lists"}