Category: Docker, apple, github, automation, yaml, ansible

utomation is a crucial element in IT since it directly affects the time of completion and efficiency of production. Automation simplifies complex and risky tasks and hence helps the developers manage the system more easily by allowing them to focus on other tasks that add value to the organization. Ansible, ‘the darling’ of automation is a widely used open-source software automation tool in the industry.

And in that , we have to write the inventory which we have saved beforeStep Write the playbook to configure webserver on Docker write the hosts group and first task (i.e configuring repo for Docker using yum_repository module)Install docker using package moduleStart and Enable the docker service using service moduleInstall docker SDK for python3Create one html file .

And exposed to public to access the webpages and it will Mount the pre-created webpages folder to the /usr/local/apache2/htdocs

Related Articles