Answers for "configure a webserver with ansible"

1

configure a webserver with ansible

# 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"
Posted by: Guest on September-12-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language