amelioration atelier

This commit is contained in:
2021-03-13 22:12:02 +01:00
parent 1d13a0a496
commit 901dc80c4b
4 changed files with 15 additions and 25 deletions

View File

@@ -1,20 +1,13 @@
---
- name: install apache via ansible playbook
hosts: test
handlers:
- name: reload httpd
service:
name: httpd
state: restarted
gather_facts: false
tasks:
- name: install apache
yum:
yum:
name: httpd
state: latest
- name: conf httpd
notify: reload httpd
template:
src: vhost.conf
dest: /etc/httpd/conf.d/vhost.conf