📅  最后修改于: 2022-03-11 14:50:32.211000             🧑  作者: Mango
# Configure ansible.cfg and hosts first
ansible webserver -m package -a "name=httpd state=present"
ansible webserver -m copy -a "src=~/index.html dest=/var/www/html/"
ansible webserver -m service -a "name=httpd state=started"
ansible webserver -m service -a "name=firewalld state=stopped"