Ansible
Ubuntu Ansible-playbook nginx 설치
삽수
2023. 8. 27. 16:18
728x90
nginx_install.yml
- name: Install nginx on Ubuntu
hosts: Ubuntu
gather_facts: no
become: yes
tasks:
- name: install nginx web server
apt: pkg=nginx state=present update_cache=yes
- name: Donwload default index.html for web server
get_url: url=https://www.apache.com dest=/usr/share/nginx/html mode=0644 validate_certs=no
bash 실행하기
ansible-playbook nginx_install.yml -k
728x90