【文件属性】:
文件名称:Learning-Ansible-2-Second-Edition:这是Packt发布的Learning Ansible 2 Second Edition的代码存储库
文件大小:83KB
文件格式:ZIP
更新时间:2021-01-31 08:28:05
ansible ansible-playbook AnsiblePython
学习Ansible 2第二版
这是Packt发布的的代码库。 它包含从头到尾完成本书所必需的所有支持项目文件。
说明和导航
所有代码都组织在文件夹中。 例如, Chapter 02 。
代码段:
---
- hosts: all
remote_user: fale
tasks:
- name: Ensure the HTTPd package is installed
yum:
name: httpd
state: present
become: True
- name: Ensure the HTTPd service is enabled and running
service:
name: httpd
state: started
enabled: True
become: True
相关Ansible产品:
建议与反馈
如果您有任何反馈或建议,请。