nginx/tasks/main.yaml
changeset 209 81014d20e5b1
parent 175 5b2a3d2cce22
child 238 bdbc88cb5078
equal deleted inserted replaced
208:88a7fee5effe 209:81014d20e5b1
    36     state: "link"
    36     state: "link"
    37   notify: reload nginx
    37   notify: reload nginx
    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   synchronize: src="{{nginx_root_src}}" dest="{{nginx_root_dest}}/"
    42   when: nginx_root
    42   when: nginx_root
    43 
    43 
    44 - name: enable nginx service
    44 - name: enable nginx service
    45   become: yes
    45   become: yes
    46   systemd: name="nginx.service" enabled="yes" state="started" daemon_reload="yes"
    46   systemd: name="nginx.service" enabled="yes" state="started" daemon_reload="yes"