Posts

Showing posts from April, 2021

Docker with Ansible

Task 10 Description:-                                      ðŸ”° Write an Ansible Playbook that doEs the following operations in the managed nodes:-   Configure Docker  Start and enable Docker services  Pull the httpd server image from the Docker Hub  Run the httpd container and expose it to the public  Copy the HTML code in /var/www/HTML directory and start the webserver. Ansible Playbook that does the following operations in the managed nodes:- Configuring yum Creating a folder and mounting the cdrom creating repo dvd. repo and dvd1.repo - name : task_1 gather_facts: No hosts: server1 Task:     -name: create_dvd_folder     file:         path: /dvd         state: directory         mode:"0755"          - name: mount_dvd       mount:     ...