nginx/tasks/main.yaml
changeset 175 5b2a3d2cce22
parent 118 56bffa9ef826
child 209 81014d20e5b1
equal deleted inserted replaced
174:431c6d5e5dd4 175:5b2a3d2cce22
    38 
    38 
    39 - name: copy root files
    39 - name: copy root files
    40   become: yes
    40   become: yes
    41   copy: src="{{nginx_root_src}}" dest="{{nginx_root_dest}}/"
    41   copy: src="{{nginx_root_src}}" dest="{{nginx_root_dest}}/"
    42   when: nginx_root
    42   when: nginx_root
    43   notify: reload nginx
       
    44 
    43 
    45 - name: enable nginx service
    44 - name: enable nginx service
    46   become: yes
    45   become: yes
    47   systemd: name="nginx.service" enabled="yes" state="started" daemon_reload="yes"
    46   systemd: name="nginx.service" enabled="yes" state="started" daemon_reload="yes"