How to Deploy Web Server using Ansible playbook?

#ansible #ansible_in_tamil #web_server_ansible_in_tamil

Ansible in Tamil-16 Lab Deploying Web Server playbook | Ansible | Ansible DevOps Tutorial in தமிழ்
https://youtu.be/megRNq7b7PI

Site: https://tamiltutera.com
Telegram Link: https://t.me/tamiltutera
Youtube Channel: https://www.youtube.com/TamilTutEra
Blog: https://tamiltutera.blogspot.com/
Like Facebook Page : https://www.facebook.com/tamiltutera
Follow us on Twitter: https://twitter.com/tamiltutera
Blog : https://tamiltutera.blogspot.com

Lab – 1 Working With Ansible Playbooks
1. Create a playbook that will install httpd on the managed server, using the following requirements.
2. Install the httpd packages.
3. Enable the httpd service and make sure it is started.
4. Create a file /var/www/html/index.html, containing the text “Welcome to my web server”.
5. Use the firewalld module to open the appropriate ports in the firewall.

Source Code for Deploy web server using Ansible Playbook:

--
- name: lab1 webserver playbook
  hosts: webserver 
  tasks: 
    - name: install httpd
      yum: name=httpd
    - name: enable and start httpd
      service: name=httpd enabled=true state=started
    - name: creating the index.html
      copy:
        content: "welcome to my web server"
        dest: /var/www/html/index.html
        mode: 0444
    - name: open firewll port
      firewalld:
        service: http
        permanent: true
        state: enabled
        immediate: yes

Ansible in Tamil-14-Creating YAML File | Ansible in தமிழ் | Ansible DevOps Tutorials in தமிழ்
https://youtu.be/Z_S11gB2How

Ansible in Tamil 13 Ansible Hosts Selection in Tamil | Ansible Tutorials in Tamil | Ansible DevOps Tutorial in தமிழ்
https://youtu.be/rgM7zjgFhHE

Ansible in Tamil -12 – Ansible Custom Inventory in Tamil | Ansible DevOps Tutorial in தமிழ்
https://youtu.be/qZnPiKlfkr

Ansible in Tamil- 11- Ansible Inventories | Ansible in தமிழ்| Ansible DevOps Tutorial in தமிழ்
https://youtu.be/0r11MRQ2MUM

Ansible in Tamil – 10 – Adhoc Commands Part-3 | Ansible in தமிழ்| Ansible DevOps Tutorial in தமிழ்
https://youtu.be/HOfJ5pxHdY4

Ansible in Tamil – 08 – Adhoc Commands – Part-1 | Ansible in தமிழ்| Ansible DevOps Tutorial in தமிழ்
https://youtu.be/-21Ic77aRcY

Ansible in Tamil – 07 – Setup Ansible master and node in tamil | Ansible DevOps Tutorial in தமிழ்
https://youtu.be/SHumFNfPoAE

Ansible in Tamil – 06 Install Ansible in Ubuntu Linux | Ansible | Ansible DevOps Tutorial in தமிழ்
https://youtu.be/h9a1PT-vlLM

Ansible in Tamil – 05 – Install Ansible in Oracle Linux | Ansible | Ansible DevOps Tutorial in தமிழ்
https://youtu.be/FX3hqQdsE9k

Ansible in Tamil – 04 – Ansible – Architecture | Ansible in தமிழ்| Ansible DevOps Tutorial in தமிழ்
https://youtu.be/PK6LCjPVeHs

Ansible in Tamil – 03 – Advantages in தமிழ் | Ansible in தமிழ்| Ansible DevOps Tutorial in தமிழ்
https://youtu.be/QARxogodRBM

Ansible in Tamil – 02- Why Ansible? in Tamil | Ansible in தமிழ் | Ansible DevOps Tutorial in Tamil
https://youtu.be/GVzSjnXkSiU

Ansible in Tamil – 01 – Ansible Introduction in தமிழ் | Ansible DevOps Tutorial in Tamil | Ansible
https://youtu.be/CPSC6X5S5_o

Leave a Reply

Your email address will not be published. Required fields are marked *