【Ansible自动化运维实战】使用Asible批量部署Apache
- 一、本次实践目的
- 二、Plyabook内容
- 三、运行playbook
一、本次实践目的
将apache批量部署到被控节点。
二、Plyabook内容
- hosts: node1
gather_facts: false
tasks:
- name: Add repository
yum_repository
将apache批量部署到被控节点。
- hosts: node1
gather_facts: false
tasks:
- name: Add repository
yum_repository
微信扫码登录