changeset 13:0331a4ed161b

remove install-httpd
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Wed, 02 Sep 2020 15:10:34 +0900
parents 626b2d034d92
children 78ce5b9c6d8f
files roles/restart-handlers/handlers/main.yml tasks/install-httpd.yml
diffstat 2 files changed, 8 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/roles/restart-handlers/handlers/main.yml	Wed Sep 02 15:07:45 2020 +0900
+++ b/roles/restart-handlers/handlers/main.yml	Wed Sep 02 15:10:34 2020 +0900
@@ -1,8 +1,15 @@
 ---
 - name: restart_firewalld
+  become: yes
   systemd:
     name: firewalld
     state: restarted
     enabled: yes
+
+
+- name: restart_nginx
   become: yes
-
+  systemd:
+    name: nginx
+    state: restarted
+    enabled: yes
--- a/tasks/install-httpd.yml	Wed Sep 02 15:07:45 2020 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-    - name: install dnf packages
-      become: yes
-      dnf: name={{ item }} state=latest
-      with_items:
-      - httpd
-
-    # start httpd
-    - service: name=httpd state=restarted
-      become: yes  
-
-    # chkconfig enabled httpd 
-    - service: name=httpd enabled=yes
-      become: yes