diff --git a/SETUP.md b/SETUP.md index 1b12389..c174f6a 100644 --- a/SETUP.md +++ b/SETUP.md @@ -2,7 +2,5 @@ SETUP ========= 1. Copy `group_vars/all.yaml.example` to `group_vars/all.yaml` -2. Fill `group_vars/all.yaml` with the gateway hostname and the content of the `user_ca_key` -3. Add the gateway hostname to `inventory`, set `ansible_host` and `ansible_user` -4. Add the ca hostname to `inventory`, set `ansible_host` and `ansible_user` -5. Add the ca\_request hostname to `inventory`, set `ansible_host` and `ansible_user` +2. Fill `group_vars/all.yaml` with the gateway hostname, the content of the `user_ca_key`, the public ip you are using and the domain you use +3. Add to the *inventory* the `gateway`, `reverse_proxy`, `ca` and `ca_request` entry. Follow the `inventory.example` format. These are the minimum entry that you neeed to make everything work in this playbook. diff --git a/roles/reverse_proxy/tasks/main.yaml b/roles/reverse_proxy/tasks/main.yaml index ebe9d85..7cf87d8 100644 --- a/roles/reverse_proxy/tasks/main.yaml +++ b/roles/reverse_proxy/tasks/main.yaml @@ -3,34 +3,34 @@ file: state: directory dest: "/etc/nginx/http.conf.d" - delegate_to: gandalf2 + delegate_to: reverse_proxy - name: Upload http to reverse proxy template: src: http.j2 dest: "/etc/nginx/http.conf.d/http_{{ hostname }}.conf" - delegate_to: gandalf2 + delegate_to: reverse_proxy - name: Create the map.conf directory for nginx file: state: directory dest: "/etc/nginx/map.conf.d" - delegate_to: gandalf2 + delegate_to: reverse_proxy - name: Create the upstream.conf directory for nginx file: state: directory dest: "/etc/nginx/upstream.conf.d" - delegate_to: gandalf2 + delegate_to: reverse_proxy - name: Upload mappings to reverse proxy template: src: map.j2 dest: "/etc/nginx/map.conf.d/map_{{ hostname }}.conf" - delegate_to: gandalf2 + delegate_to: reverse_proxy - name: Upload upstream to reverse proxy template: src: upstream.j2 dest: "/etc/nginx/upstream.conf.d/upstream_{{ hostname }}.conf" - delegate_to: gandalf2 + delegate_to: reverse_proxy