-
Christian Elberfeld authoredChristian Elberfeld authored
main.yml 781 B
# Pakete installieren
- name: nginx installieren
apt:
name: "{{ packages }}"
update_cache: yes
state: present
vars:
packages:
- nginx
- git
- openssl
- name: nginx default Konfig entfernen
file:
path: /etc/nginx/sites-enabled/default
state: absent
# nginx konfigurieren
- name: create script to create self-signed certificates
template: src=create_certs.sh dest=/etc/ssl/create_certs.sh mode=o+x
notify: restart nginx
- name: create self-signed SSL certs
command: /etc/ssl/create_certs.sh
notify: restart nginx
# nginx konfigurieren
- name: Konfig-Datei default erstellen
template: src=nginx-site dest=/etc/nginx/sites-enabled/{{item}}.wapzone
with_items: "{{ webserver_domains }}"
notify: restart nginx