suppression tags
This commit is contained in:
@@ -1,12 +1,10 @@
|
|||||||
---
|
---
|
||||||
# tasks file for myapache
|
# tasks file for myapache
|
||||||
- name: install apache
|
- name: install apache
|
||||||
tags: httpd
|
|
||||||
yum:
|
yum:
|
||||||
name: httpd
|
name: httpd
|
||||||
state: latest
|
state: latest
|
||||||
- name: conf httpd
|
- name: conf httpd
|
||||||
tags: httpd
|
|
||||||
notify: reload httpd
|
notify: reload httpd
|
||||||
template:
|
template:
|
||||||
src: vhost.conf.jj
|
src: vhost.conf.jj
|
||||||
@@ -16,13 +14,11 @@
|
|||||||
group: apache
|
group: apache
|
||||||
|
|
||||||
- name: activate apache
|
- name: activate apache
|
||||||
tags: httpd
|
|
||||||
service:
|
service:
|
||||||
name: httpd
|
name: httpd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: open firewall port
|
- name: open firewall port
|
||||||
tags: httpd
|
|
||||||
firewalld:
|
firewalld:
|
||||||
service: http
|
service: http
|
||||||
permanent: yes
|
permanent: yes
|
||||||
@@ -32,13 +28,11 @@
|
|||||||
notify: reload firewalld
|
notify: reload firewalld
|
||||||
|
|
||||||
- name: create documentroot
|
- name: create documentroot
|
||||||
tags: httpd
|
|
||||||
file:
|
file:
|
||||||
name: "/var/www/html/{{ servername }}"
|
name: "/var/www/html/{{ servername }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: create index file
|
- name: create index file
|
||||||
tags: httpd
|
|
||||||
copy:
|
copy:
|
||||||
src: index.html
|
src: index.html
|
||||||
dest: "/var/www/html/{{ servername }}/index.html"
|
dest: "/var/www/html/{{ servername }}/index.html"
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
---
|
---
|
||||||
# tasks file for myapache
|
# tasks file for myapache
|
||||||
- name: install apache
|
- name: install apache
|
||||||
tags: httpd
|
|
||||||
yum:
|
yum:
|
||||||
name: httpd
|
name: httpd
|
||||||
state: latest
|
state: latest
|
||||||
- name: conf httpd
|
- name: conf httpd
|
||||||
tags: httpd
|
|
||||||
notify: reload httpd
|
notify: reload httpd
|
||||||
template:
|
template:
|
||||||
src: vhost.conf.jj
|
src: vhost.conf.jj
|
||||||
@@ -16,13 +14,11 @@
|
|||||||
group: apache
|
group: apache
|
||||||
|
|
||||||
- name: activate apache
|
- name: activate apache
|
||||||
tags: httpd
|
|
||||||
service:
|
service:
|
||||||
name: httpd
|
name: httpd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: open firewall port
|
- name: open firewall port
|
||||||
tags: httpd
|
|
||||||
firewalld:
|
firewalld:
|
||||||
service: http
|
service: http
|
||||||
permanent: yes
|
permanent: yes
|
||||||
@@ -32,7 +28,6 @@
|
|||||||
notify: reload firewalld
|
notify: reload firewalld
|
||||||
|
|
||||||
- name: create documentroot
|
- name: create documentroot
|
||||||
tags: httpd
|
|
||||||
file:
|
file:
|
||||||
name: "/var/www/html/{{ item.documentroot }}"
|
name: "/var/www/html/{{ item.documentroot }}"
|
||||||
state: directory
|
state: directory
|
||||||
@@ -40,7 +35,6 @@
|
|||||||
- "{{ apache_vhosts }}"
|
- "{{ apache_vhosts }}"
|
||||||
|
|
||||||
- name: create index file
|
- name: create index file
|
||||||
tags: httpd
|
|
||||||
copy:
|
copy:
|
||||||
src: index.html
|
src: index.html
|
||||||
dest: "/var/www/html/{{ item.documentroot }}/index.html"
|
dest: "/var/www/html/{{ item.documentroot }}/index.html"
|
||||||
|
|||||||
Reference in New Issue
Block a user