nginx ansible로 설치하기1 [6] 3대의 노드에 웹서버를 설치하고 기동해보자!(centos, ansible) 1. Ansible server에 playbook 만들기 [root@AnsibleServer ~]# vi test.yml --- - hosts: nginx remote_user : root tasks: - name: install epel-release yum : name=epel-release state=latest - name: install nginx web server yum: name=nginx state=present - name : Start nginx web server service: name=nginx state=started 2. playbook 실행하기 [root@AnsibleServer ~]# ansible-playbook test.yml -k 꼭 -k를 넣기로 하자,,,, -k .. 2021. 2. 3. 이전 1 다음