This commit is contained in:
2021-04-20 09:57:12 +02:00
parent d3dd99b100
commit 072a555f21

View File

@@ -1,6 +1,12 @@
---
- name: install apache via ansible playbook
gather_facts: false
hosts: centos
handlers:
- name: restart apache
service:
name: httpd
state: restarted
tasks:
- name: install apache
yum:
@@ -14,6 +20,7 @@
mode: 0640
owner: root
group: apache
notify: restart apache
- name: activate apache
service: