first commit

This commit is contained in:
Ludovic Cartier
2025-09-23 16:06:56 +02:00
commit de96d3c2bb
10 changed files with 206 additions and 0 deletions

32
tasks/install.yml Normal file
View File

@@ -0,0 +1,32 @@
---
- name: "apache2 | apt update cache"
apt:
update_cache: yes
cache_valid_time: 86400
tags:
- apache2
- apache2_install
- name: "apache2 | install packages"
apt:
name: "{{ item }}"
update_cache: true
state: present
with_items:
- apache2
- apache2-bin
- apache2-data
- apache2-utils
register: is_apache2
tags:
- apache2
- apache2_install
- name: "apache2 | remove default vhost"
file:
path: "/etc/apache2/sites-enabled/000-default.conf"
state: absent
tags:
- apache2
- apache2_install