2
0

suppression tags

This commit is contained in:
2018-05-25 11:23:50 +02:00
parent c5e82116c4
commit d1b1a95d47
2 changed files with 0 additions and 12 deletions

View File

@@ -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"

View File

@@ -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"