diff --git a/17.1_variable/myapache/tasks/main.yml b/17.1_variable/myapache/tasks/main.yml index 277a4f2..70ace4d 100644 --- a/17.1_variable/myapache/tasks/main.yml +++ b/17.1_variable/myapache/tasks/main.yml @@ -1,12 +1,10 @@ --- # tasks file for myapache - name: install apache - tags: httpd yum: name: httpd state: latest - name: conf httpd - tags: httpd notify: reload httpd template: src: vhost.conf.jj @@ -16,13 +14,11 @@ group: apache - name: activate apache - tags: httpd service: name: httpd enabled: yes - name: open firewall port - tags: httpd firewalld: service: http permanent: yes @@ -32,13 +28,11 @@ notify: reload firewalld - name: create documentroot - tags: httpd file: name: "/var/www/html/{{ servername }}" state: directory - name: create index file - tags: httpd copy: src: index.html dest: "/var/www/html/{{ servername }}/index.html" diff --git a/17.2_variable/myapache2/tasks/main.yml b/17.2_variable/myapache2/tasks/main.yml index 9dedf3d..b8b67b2 100644 --- a/17.2_variable/myapache2/tasks/main.yml +++ b/17.2_variable/myapache2/tasks/main.yml @@ -1,12 +1,10 @@ --- # tasks file for myapache - name: install apache - tags: httpd yum: name: httpd state: latest - name: conf httpd - tags: httpd notify: reload httpd template: src: vhost.conf.jj @@ -16,13 +14,11 @@ group: apache - name: activate apache - tags: httpd service: name: httpd enabled: yes - name: open firewall port - tags: httpd firewalld: service: http permanent: yes @@ -32,7 +28,6 @@ notify: reload firewalld - name: create documentroot - tags: httpd file: name: "/var/www/html/{{ item.documentroot }}" state: directory @@ -40,7 +35,6 @@ - "{{ apache_vhosts }}" - name: create index file - tags: httpd copy: src: index.html dest: "/var/www/html/{{ item.documentroot }}/index.html"