main.yml 385 B

1234567891011121314151617181920212223
  1. ---
  2. # tasks file for myvhost
  3. - name: ensure httpd is installed
  4. yum:
  5. name: httpd
  6. state: latest
  7. - name: ensure httpd is running
  8. service:
  9. name: httpd
  10. state: started
  11. enabled: yes
  12. - name: vhost file is installed
  13. template:
  14. src: vhost.conf.j2
  15. dest: /etc/httpd/conf.d/vhost.conf
  16. owner: root
  17. group: root
  18. mode: 0644
  19. notify:
  20. - restart httpd