123456789101112131415 |
- ---
- - name: Disable the default site
- file: path={{nginx_conf_dir}}/sites-enabled/default state=absent
- notify:
- - reload nginx
- tags: [configuration,nginx]
- - name: Remove the default configuration
- file: path={{nginx_conf_dir}}/conf.d/default.conf state=absent
- when: >
- 'default' not in nginx_configs.keys()
- notify:
- - reload nginx
- tags: [configuration,nginx]
|