├── .config └── ansible-lint.yml ├── .github └── workflows │ ├── ansible_galaxy.yml │ ├── ci.yml │ └── molecule.yml ├── .gitignore ├── .yamllint.yml ├── LICENSE ├── README.md ├── defaults └── main.yml ├── doc ├── acme.md ├── auth.md ├── php.md ├── site.md ├── ssl.md └── upstream.md ├── filter_plugins ├── nginx.py └── php.py ├── handlers └── main.yml ├── meta └── main.yml ├── molecule ├── _shared │ ├── Dockerfile.j2 │ ├── base.yml │ ├── converge.yml │ ├── file │ │ ├── test.crt │ │ └── test.key │ ├── group_vars │ │ └── all │ │ │ └── main.yml │ ├── prepare.yml │ ├── requirements.yml │ ├── templates │ │ └── custom_template.conf.j2 │ └── verify.yml ├── debian-11 │ └── molecule.yml ├── debian-12 │ └── molecule.yml ├── debian-13 │ └── molecule.yml ├── default │ └── .gitkeep ├── ubuntu-20.04 │ └── molecule.yml ├── ubuntu-22.04 │ └── molecule.yml └── ubuntu-24.04 │ └── molecule.yml ├── requirements.yml ├── tasks ├── config.yml ├── htpasswd.yml ├── install │ ├── Debian.yml │ ├── acme.yml │ └── main.yml ├── main.yml ├── prepare.yml ├── site.yml ├── ssl │ ├── acme.yml │ ├── main.yml │ └── standard.yml └── upstream.yml ├── templates └── etc │ ├── ansible │ └── facts.d │ │ └── nginx.fact.j2 │ └── nginx │ ├── conf.d │ ├── FAKESITE.conf.j2 │ ├── _upstream.conf.j2 │ ├── custom.conf.j2 │ └── php.conf.j2 │ ├── helper │ ├── ssl-legacy.j2 │ └── ssl-strong.j2 │ ├── nginx.conf.j2 │ └── sites-available │ ├── _base.j2 │ ├── _dokuwiki.j2 │ ├── _phalcon.j2 │ ├── _php.j2 │ ├── _php_index.j2 │ ├── _php_index2.j2 │ ├── _proxy.j2 │ ├── _redirect.j2 │ ├── _symfony.j2 │ └── _wordpress.j2 └── vars ├── Debian.yml └── main.yml /.config/ansible-lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/.config/ansible-lint.yml -------------------------------------------------------------------------------- /.github/workflows/ansible_galaxy.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/.github/workflows/ansible_galaxy.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/.github/workflows/molecule.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/.gitignore -------------------------------------------------------------------------------- /.yamllint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/.yamllint.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/README.md -------------------------------------------------------------------------------- /defaults/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/defaults/main.yml -------------------------------------------------------------------------------- /doc/acme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/doc/acme.md -------------------------------------------------------------------------------- /doc/auth.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/doc/auth.md -------------------------------------------------------------------------------- /doc/php.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/doc/php.md -------------------------------------------------------------------------------- /doc/site.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/doc/site.md -------------------------------------------------------------------------------- /doc/ssl.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/doc/ssl.md -------------------------------------------------------------------------------- /doc/upstream.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/doc/upstream.md -------------------------------------------------------------------------------- /filter_plugins/nginx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/filter_plugins/nginx.py -------------------------------------------------------------------------------- /filter_plugins/php.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/filter_plugins/php.py -------------------------------------------------------------------------------- /handlers/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/handlers/main.yml -------------------------------------------------------------------------------- /meta/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/meta/main.yml -------------------------------------------------------------------------------- /molecule/_shared/Dockerfile.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/Dockerfile.j2 -------------------------------------------------------------------------------- /molecule/_shared/base.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/base.yml -------------------------------------------------------------------------------- /molecule/_shared/converge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/converge.yml -------------------------------------------------------------------------------- /molecule/_shared/file/test.crt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/file/test.crt -------------------------------------------------------------------------------- /molecule/_shared/file/test.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/file/test.key -------------------------------------------------------------------------------- /molecule/_shared/group_vars/all/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/group_vars/all/main.yml -------------------------------------------------------------------------------- /molecule/_shared/prepare.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/prepare.yml -------------------------------------------------------------------------------- /molecule/_shared/requirements.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/requirements.yml -------------------------------------------------------------------------------- /molecule/_shared/templates/custom_template.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/templates/custom_template.conf.j2 -------------------------------------------------------------------------------- /molecule/_shared/verify.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/_shared/verify.yml -------------------------------------------------------------------------------- /molecule/debian-11/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/debian-11/molecule.yml -------------------------------------------------------------------------------- /molecule/debian-12/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/debian-12/molecule.yml -------------------------------------------------------------------------------- /molecule/debian-13/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/debian-13/molecule.yml -------------------------------------------------------------------------------- /molecule/default/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /molecule/ubuntu-20.04/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/ubuntu-20.04/molecule.yml -------------------------------------------------------------------------------- /molecule/ubuntu-22.04/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/ubuntu-22.04/molecule.yml -------------------------------------------------------------------------------- /molecule/ubuntu-24.04/molecule.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/molecule/ubuntu-24.04/molecule.yml -------------------------------------------------------------------------------- /requirements.yml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | collections: 4 | - community.general 5 | -------------------------------------------------------------------------------- /tasks/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/config.yml -------------------------------------------------------------------------------- /tasks/htpasswd.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/htpasswd.yml -------------------------------------------------------------------------------- /tasks/install/Debian.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/install/Debian.yml -------------------------------------------------------------------------------- /tasks/install/acme.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/install/acme.yml -------------------------------------------------------------------------------- /tasks/install/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/install/main.yml -------------------------------------------------------------------------------- /tasks/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/main.yml -------------------------------------------------------------------------------- /tasks/prepare.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/prepare.yml -------------------------------------------------------------------------------- /tasks/site.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/site.yml -------------------------------------------------------------------------------- /tasks/ssl/acme.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/ssl/acme.yml -------------------------------------------------------------------------------- /tasks/ssl/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/ssl/main.yml -------------------------------------------------------------------------------- /tasks/ssl/standard.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/ssl/standard.yml -------------------------------------------------------------------------------- /tasks/upstream.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/tasks/upstream.yml -------------------------------------------------------------------------------- /templates/etc/ansible/facts.d/nginx.fact.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/ansible/facts.d/nginx.fact.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/conf.d/FAKESITE.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/conf.d/FAKESITE.conf.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/conf.d/_upstream.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/conf.d/_upstream.conf.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/conf.d/custom.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/conf.d/custom.conf.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/conf.d/php.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/conf.d/php.conf.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/helper/ssl-legacy.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/helper/ssl-legacy.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/helper/ssl-strong.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/helper/ssl-strong.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/nginx.conf.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/nginx.conf.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_base.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_base.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_dokuwiki.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_dokuwiki.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_phalcon.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_phalcon.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_php.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_php.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_php_index.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_php_index.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_php_index2.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_php_index2.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_proxy.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_proxy.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_redirect.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_redirect.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_symfony.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_symfony.j2 -------------------------------------------------------------------------------- /templates/etc/nginx/sites-available/_wordpress.j2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/templates/etc/nginx/sites-available/_wordpress.j2 -------------------------------------------------------------------------------- /vars/Debian.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/vars/Debian.yml -------------------------------------------------------------------------------- /vars/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HanXHX/ansible-nginx/HEAD/vars/main.yml --------------------------------------------------------------------------------