foo
This commit is contained in:
27
apache.yml
27
apache.yml
@@ -8,35 +8,8 @@
|
|||||||
name: httpd
|
name: httpd
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: conf httpd
|
|
||||||
template:
|
|
||||||
src: vhost.conf
|
|
||||||
dest: /etc/httpd/conf.d/vhost.conf
|
|
||||||
mode: 0640
|
|
||||||
owner: root
|
|
||||||
group: apache
|
|
||||||
|
|
||||||
- name: activate apache
|
- name: activate apache
|
||||||
service:
|
service:
|
||||||
name: httpd
|
name: httpd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: open firewall port
|
|
||||||
firewalld:
|
|
||||||
service: http
|
|
||||||
permanent: yes
|
|
||||||
immediate: yes
|
|
||||||
state: enabled
|
|
||||||
ignore_errors: true
|
|
||||||
|
|
||||||
- name: create documentroot
|
|
||||||
file:
|
|
||||||
name: /var/www/html/example.org/
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: copy index file
|
|
||||||
template:
|
|
||||||
src: index.txt
|
|
||||||
dest: /var/www/html/example.org/index.html
|
|
||||||
mode: 0644
|
|
||||||
Reference in New Issue
Block a user