{"id":16781502,"url":"https://github.com/ppintosilva/ansible-anpr-server","last_synced_at":"2025-09-23T17:13:41.084Z","repository":{"id":95354501,"uuid":"143871322","full_name":"ppintosilva/ansible-anpr-server","owner":"ppintosilva","description":"Setup a SQL server database containing Number Plate Data, generated by a network of ANPR cameras.","archived":false,"fork":false,"pushed_at":"2018-08-07T13:57:43.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T07:26:47.958Z","etag":null,"topics":["anpr","ansible","ansible-role","sql-server"],"latest_commit_sha":null,"homepage":"","language":null,"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/ppintosilva.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":"2018-08-07T12:38:53.000Z","updated_at":"2018-08-07T13:57:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3827b75-c16d-4af4-8988-dcf3452ff5e9","html_url":"https://github.com/ppintosilva/ansible-anpr-server","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppintosilva%2Fansible-anpr-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppintosilva%2Fansible-anpr-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppintosilva%2Fansible-anpr-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppintosilva%2Fansible-anpr-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppintosilva","download_url":"https://codeload.github.com/ppintosilva/ansible-anpr-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933438,"owners_count":20370986,"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":["anpr","ansible","ansible-role","sql-server"],"created_at":"2024-10-13T07:43:11.400Z","updated_at":"2025-09-23T17:13:36.064Z","avatar_url":"https://github.com/ppintosilva.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role: anpr-server\n=========\n\nSetup a SQL server database containing Number Plate Data, generated by networks of ANPR cameras.\n\nIt clones, installs and starts the [anpr-mssql-server](https://github.com/PedrosWits/anpr-mssql-server).\n\nRequirements\n------------\n\nNone.\n\nRole Variables\n--------------\n\nAvailable variables with corresponding default values:\n\n```\ndestination: \"/home/{{ ansible_ssh_user }}/anpr-server\"\n\nvolumes:\n  - {blkid: '/dev/vdb', mount_dir: 'dbfiles', fstype: 'ext4'}\n  - {blkid: '/dev/vdc', mount_dir: 'tempdb', fstype: 'ext4'}\n  - {blkid: '', mount_dir: 'bakfile', fstype: 'ext4'}\n\nmax_ram: 7983 #GB\n\nsql_password: !vault |\n          $ANSIBLE_VAULT;1.1;AES256\n          30666434643766303462353638623735666166623239363530373237343762643234613463383732\n          3630393036623931666238613866353231643031336534380a303536306439313838363730656637\n          38653065343239343736366638343062373562333735613930646336366539333330666133393431\n          3834626363643261330a646435663532633165613836613431363765643037613265333866363033\n          3335\n\nattach: True\n```\n\nVolume blkids on ubuntu are given by order of attach hence when attaching volumes to the instance, follow the order above or modify these variables. This can  work differently for other OS'es. Thus this isn't an optimal, scalable or robust solution, but works for now. Will only try to mount volumes for which a blkid is defined.\n\n`max_ram` defines the maximum ram to be used by sql-server.\n\nThe password to be used by sql server should be provided via ansible vault.\n\nDependencies\n------------\n\nNone\n\nExample Playbook\n----------------\n\n    - hosts: sql_server\n      roles:\n         - role: pedroswits.anpr_server\n           max_ram: 2048\n           attach: False\n\nLicense\n-------\n\nMIT\n\nAuthor Information\n------------------\nThis role was created in 2018 by Pedro Pinto da Silva to help setup the computing resources necessary to reproduce his PhD.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppintosilva%2Fansible-anpr-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppintosilva%2Fansible-anpr-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppintosilva%2Fansible-anpr-server/lists"}