roles/nginx/tasks/main.yaml
changeset 75 d8c87a41cc6d
parent 69 be979818d483
child 82 a3e1a9b18f6d
equal deleted inserted replaced
74:dc20ec78acdd 75:d8c87a41cc6d
     6 
     6 
     7 - name: install site
     7 - name: install site
     8   become: yes
     8   become: yes
     9   template: src="{{nginx_conf_src}}" dest="/etc/nginx/sites-available/{{nginx_conf_dst}}"
     9   template: src="{{nginx_conf_src}}" dest="/etc/nginx/sites-available/{{nginx_conf_dst}}"
    10   notify: restart nginx
    10   notify: restart nginx
    11 
       
    12 # https://certbot.eff.org/lets-encrypt/ubuntuxenial-nginx
       
    13 - name: add certbot (letsencrypt) repo
       
    14   become: yes
       
    15   apt_repository: repo="ppa:certbot/certbot"
       
    16   when: nginx_enable_ssl
       
    17 
    11 
    18 - name: install nginx packages
    12 - name: install nginx packages
    19   become: yes
    13   become: yes
    20   apt: name="python-certbot-nginx"
    14   apt: name="python-certbot-nginx"
    21   notify: restart nginx
    15   notify: restart nginx