Playbook to install httpd package

by admin May 10, 2020 at 3:51 pm

Playbook to install and start the httpd service


---
- hosts: ansiblenode2
  become: yes
  tasks:
  - name: install httpd
    yum:
      name: httpd
      state: latest
  - name: start and enable httpd
    service:
      name: httpd
      state: started
      enabled: yes   

Leave a Reply