stancel.nginx_site_removal

nginx_site_removal

This is an Ansible role that deletes one or more virtual hosts from an NginX web server.

Requirements

You need to have NginX already installed and working on the server where you will use this role.

Role Variables

Here’s how to specify the sites you want to remove from the web server:

    nginx_site_removal_sites_to_remove:
      - {
          url: 'mysite.com',
          name: 'mysite'
        }

(The default) The main directory for the web server files. The default is "/var/www":

    nginx_site_removal_web_home: "/var/www"

Dependencies

None required.

Example Playbook

Here’s an example of how to use this role, including how to pass variables:

- hosts: your_webserver
  vars_files:
    - vars/main.yml
  roles:
    - stancel.nginx_site_removal 

Or you can pass the variables directly in the playbook:

- hosts: your_webserver 
  vars:
    nginx_site_removal_sites_to_remove:
      - {
          url: 'mysite.com',
          name: 'mysite'
        }
  roles:
    - stancel.nginx_site_removal

License

GPLv3

Author Information

Brad Stance

Informazioni sul progetto

Removes up one or more virtual hosts on an NginX webserver

Installa
ansible-galaxy install stancel.nginx_site_removal
Licenza
Unknown
Download
102
Proprietario