Skip to content
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

18 lines (16 sloc) 502 Bytes
- hosts: test-servers
remote_user: nahmed
become: true
project_root: /var/www/html
- name: Install Apache Webserver
yum: pkg=httpd state=latest
- name: Place the index file at project root
copy: src=index.html dest={{ project_root }}/index.html owner=apache group=apache mode=0644
- name: Enable Apache on system reboot
service: name=httpd enabled=yes
notify: restart apache
- name: restart apache
service: name=httpd state=restarted
You can’t perform that action at this time.