티스토리 뷰
[vagrant@control work]$ cat winnginx.yaml
- hosts: windows
gather_facts: no
tasks:
- win_file:
path: C:\nginx
state: directory
- win_get_url:
url: http://nginx.org/download/nginx-1.14.0.zip
dest: C:\nginx\nginx-1.40.0.zip
- win_unzip:
src: C:\nginx\nginx-1.40.0.zip
dest: C:\nginx
delete_archive: yes
- win_chocolatey:
name: nssm
- win_get_url:
url: https://www.nginx.com
dest: C:\nginx\nginx-1.14.0\html\index.html
- win_nssm:
name: nginx
application: C:\nginx\nginx-1.14.0\nginx.exe
state: present
- win_service:
name: nginx
state: restarted
▤ nginx unzip이 안된다
>>> 이미 chocolatey 를 다운로드시, 자동으로 올리는걸로 판명
>>> 제어판 ( service ) 에서 nginx 중지시키면 된다
>> service stop
>>> 된다
'Ansible' 카테고리의 다른 글
Ansible playbook 활용하여 fingerprint/공개키 (0) | 2024.02.19 |
---|---|
vagrant 백업 및 삭제 (0) | 2024.02.19 |
Ansible 총정리2 (0) | 2024.02.16 |
Ansible 총 정리 (1) | 2024.02.15 |
Ansible 변수 추가내용 (0) | 2024.02.14 |