ansible-practice/apache-inventaire.conf.yml
Alexandre Domont ff016884a4 Docker scripts
2024-07-17 13:59:35 +00:00

19 lines
489 B
YAML

---
- name: "Apache installation"
hosts: 1-1.practice-k8s.cloud
tasks:
- name: "Apache package installation"
yum:
name: "httpd"
state: "present"
- name: "Apache configuration"
template:
src: "inventory.conf.j2"
dest: "/etc/httpd/conf.d/inventory.conf"
owner: "apache"
group: "apache"
- name: "Start apache service"
service:
name: "httpd"
state: "started"
enabled: yes