Remove legacy code

pull/35/head
Emilien Mantel 2017-10-03 17:38:06 +02:00
parent cfe27ef245
commit 54dd1ef3c0
2 changed files with 1 additions and 17 deletions

View File

@ -1,20 +1,5 @@
--- ---
- name: SET_FACT | Backward compatibility (nginx_vhosts)
set_fact:
nginx_sites: "{{ nginx_vhosts }}"
when: nginx_vhosts is defined
- name: SET_FACT | Backward compatibility (nginx_default_vhost_ssl)
set_fact:
nginx_default_site_ssl: "{{ nginx_default_vhost_ssl }}"
when: nginx_default_vhost_ssl is defined
- name: SET_FACT | Backward compatibility (nginx_default_vhost)
set_fact:
nginx_default_site: "{{ nginx_default_vhost }}"
when: nginx_default_vhost is defined
- name: SHELL | Get Nginx version - name: SHELL | Get Nginx version
shell: nginx -v 2>&1 | sed -r 's#.*/##;' | cut -d ' ' -f 1 shell: nginx -v 2>&1 | sed -r 's#.*/##;' | cut -d ' ' -f 1
args: args:

View File

@ -118,8 +118,7 @@
- '}' - '}'
nginx_default_site: 'first-test' nginx_default_site: 'first-test'
nginx_default_site_ssl: 'test-ssl-predeployed.local' nginx_default_site_ssl: 'test-ssl-predeployed.local'
# TODO: nginx_vhosts -> nginx_sites (for now check backward compatibility) nginx_sites:
nginx_vhosts:
- name: - name:
- 'test.local' - 'test.local'
- 'test-alias.local' - 'test-alias.local'