{"id":18593327,"url":"https://github.com/acromedia/ansible-role-nginx","last_synced_at":"2026-01-25T15:31:30.009Z","repository":{"id":48426177,"uuid":"156438940","full_name":"AcroMedia/ansible-role-nginx","owner":"AcroMedia","description":"Install and configure NGINX for acro hosting environments","archived":false,"fork":false,"pushed_at":"2024-06-18T23:15:55.000Z","size":83,"stargazers_count":0,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-16T10:41:41.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AcroMedia.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}},"created_at":"2018-11-06T19:50:37.000Z","updated_at":"2024-06-18T23:15:56.000Z","dependencies_parsed_at":"2023-02-01T13:32:06.555Z","dependency_job_id":null,"html_url":"https://github.com/AcroMedia/ansible-role-nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AcroMedia/ansible-role-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcroMedia%2Fansible-role-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcroMedia%2Fansible-role-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcroMedia%2Fansible-role-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcroMedia%2Fansible-role-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AcroMedia","download_url":"https://codeload.github.com/AcroMedia/ansible-role-nginx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AcroMedia%2Fansible-role-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28754823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T13:59:49.818Z","status":"ssl_error","status_checked_at":"2026-01-25T13:59:33.728Z","response_time":113,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-07T01:12:06.903Z","updated_at":"2026-01-25T15:31:29.991Z","avatar_url":"https://github.com/AcroMedia.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-role-nginx\n\n![.github/workflows/molecule.yml](https://github.com/AcroMedia/ansible-role-nginx/workflows/.github/workflows/molecule.yml/badge.svg)\n\nInstall and configure NGINX for acro hosting environments\n\n## Requirements\n\n* Ubuntu 18.04+ or CentOS/Red Hat/Rocky Linux 8+\n* Your playbook must gather facts\n\n## Role Variables\n\n**nginx_server_names_hash_bucket_size**: The role sets this to 128. On shared servers, the built-in nginx default for this is usually too small.\n\n**nginx_robots_policy**: Can be one of  'development', 'staging', or 'production'. When defined, the role creates an include file meant to be consumed by virtual hosts on the machine.  If value is set to 'staging' or 'development', and when a virtual host includes the file, requests for /robots.txt on the virtual host will be served with a 'deny all' robots policy, no matter what the local /robots.txt contains on the virtual host. This way, projects don't need to keep a separate robots files for different environments. It should be mentioned that robots offers no significant protection from indexing. Search engines generally do whatever they want anyway. So if you really don't want your dev/staging site indexed, put it behind basic http auth, or a firewall.\n\n**nginx_global_username** / **nginx_global_password**: Put a http basic auth username / password prompt in front of all sites on a server. Intended as a simple but extremely effective measure for keeping seach engines from being able index your staging server. Anonymous access can be restored to specific sites or locations by adding `auth_basic: off;` at any level, which overrides the directive set by the role at the global level. See other nginx_auth_* variables in defaults/main.yml.\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\n```yaml\n---\n- hosts: servers\n  become: true\n  gather_facts: true\n  roles:\n    - name: Install NGINX\n      role: acromedia.nginx\n      vars:\n        nginx_robots_policy: production\n```\n\n## Testing with Molecule\n\nSee [tests.README.md](./tests.README.md)\n\n## License\n\nGPLv3\n\n## Author Information\n\nAcro Media Inc.\nhttps://www.acromedia.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facromedia%2Fansible-role-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facromedia%2Fansible-role-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facromedia%2Fansible-role-nginx/lists"}