buy hypertropin

Ansible playbook to install and start httpd



  • name: Playbook
  • hosts: webservers
  • become: yes
  • become_user: root
  • tasks:
    • name: ensure apache is at the latest version
      yum:
      name: httpd
      state: latest
    • name: ensure apache is running
      service:
      name: httpd
      state: started


Leave a Reply