{"id":27088976,"url":"https://github.com/devops-works/ansible-varnish","last_synced_at":"2025-04-06T06:37:11.818Z","repository":{"id":44474243,"uuid":"41632333","full_name":"devops-works/ansible-varnish","owner":"devops-works","description":"Ansible Role that installs Varnish Debian/Ubuntu Linux.  Stripped down version from geerlingguy","archived":false,"fork":false,"pushed_at":"2022-02-15T12:46:44.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-10T21:43:32.183Z","etag":null,"topics":["ansible-role","varnish"],"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/devops-works.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}},"created_at":"2015-08-30T14:56:43.000Z","updated_at":"2022-04-11T05:55:50.000Z","dependencies_parsed_at":"2022-07-15T17:00:35.810Z","dependency_job_id":null,"html_url":"https://github.com/devops-works/ansible-varnish","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fansible-varnish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fansible-varnish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fansible-varnish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devops-works%2Fansible-varnish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devops-works","download_url":"https://codeload.github.com/devops-works/ansible-varnish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445686,"owners_count":20939953,"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":["ansible-role","varnish"],"created_at":"2025-04-06T06:37:11.239Z","updated_at":"2025-04-06T06:37:11.807Z","avatar_url":"https://github.com/devops-works.png","language":"Shell","readme":"# Ansible Role: Varnish\n\nAn Ansible Role that installs Varnish 5 on Debian/Ubuntu Linux.\n\nStripped down version from [geerlingguy](https://github.com/geerlingguy/ansible-role-varnish).\n\n## Role Variables\n\nAvailable variables are listed below, along with default values (see\n`defaults/main.yml`):\n\n    varnish_config_path: /etc/varnish\n\nThe path in which Varnish configuration files will be stored.\n\n    varnish_use_default_vcl: true\n\nWhether to use the included (simplistic) default Varnish VCL, using the\nbackend host/port defined with the next two variables. Set this to\n`false` and copy your own `default.vcl` file into the\n`varnish_config_path` if you'd like to use a more complicated setup. If\nthis variable is set to `true`, all other configuration will be taken\nfrom Varnish's own [default\nVCL](https://www.varnish-cache.org/trac/browser/bin/varnishd/default.vcl?rev=3.0).\n\n    varnish_default_vcl_template_path: default.vcl.j2\n\nThe default VCL file to be copied (if `varnish_use_default_vcl` is\n`true`). Defaults the the simple template inside\n`templates/default.vcl.j2`. This path should be relative to the\ndirectory from which you run your playbook.\n\n    varnish_default_backend_host: \"127.0.0.1\"\n    varnish_default_backend_port: \"8080\"\n\nSome settings for the default \"default.vcl\" template that will be copied\nto the `varnish_config_path` folder. The default backend host/port could\nbe Apache or Nginx (or some other HTTP server) running on the same host\nor some other host (in which case, you might use port 80 instead).\n\n    varnish_listen_port: \"80\"\n\nThe port on which Varnish will listen (typically port 80).\n\n    varnish_secret: false\n\nThe secret/key to be used for connecting to Varnish's admin backend (for\npurge requests, etc.). Must be redefined (hint: use uuidgen).\n\n    varnish_admin_listen_host: \"127.0.0.1\"\n    varnish_admin_listen_port: \"6082\"\n\nThe host and port through which Varnish will accept admin requests (like\npurge and status requests).\n\n    varnish_storage: \"file,/var/lib/varnish/varnish_storage.bin,256M\"\n\nHow Varnish stores cache entries (this is passed in as the argument for\n`-s`). If you want to use in-memory storage, change to something like\n`malloc,256M`. Please read Varnish's [Getting Started\nguide](https://www.varnish-software.com/static/book/Getting_started.html)\nfor more information.\n\n## Dependencies\n\nNone.\n\n## Example Playbook\n\n    - hosts: webservers\n      vars_files:\n        - vars/main.yml\n      roles:\n        - { role: leucos.ansible-varnish }\n\n*Inside `vars/main.yml`*:\n\n    varnish_secret: \"[secret generated by uuidgen]\"\n    varnish_default_backend_host: 81\n    ... etc ...\n\n## License\n\nMIT / BSD\n\n## Author Information\n\nThis role was created in 2014 by [Jeff\nGeerling](http://jeffgeerling.com/), author of [Ansible for\nDevOps](http://ansiblefordevops.com/) and trimmed down here by\n[leucos](https://github.com/leucos).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-works%2Fansible-varnish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevops-works%2Fansible-varnish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevops-works%2Fansible-varnish/lists"}