mise a jour

This commit is contained in:
2026-06-25 09:20:53 +02:00
parent bf2678ee44
commit 7422ff8c0f
8 changed files with 13 additions and 15 deletions
+8 -8
View File
@@ -1,7 +1,7 @@
---
# tasks file for tco.apache_abrd3
# tasks file for tco.apache_abrd4
- name: import OS variables
include_vars: "{{ ansible_distribution | lower }}.yml"
ansible.builtin.include_vars: "{{ ansible_os_family | lower }}.yml"
- name: install apache
ansible.builtin.package:
@@ -9,7 +9,7 @@
state: present
- name: conf httpd
template:
ansible.builtin.template:
src: vhost.conf
dest: "{{ apache_config_dir }}/vhost.conf"
mode: 0640
@@ -20,7 +20,7 @@
- meta: flush_handlers
- name: activate apache
service:
ansible.builtin.service:
name: "{{ apache_service_name }}"
enabled: yes
state: restarted
@@ -28,20 +28,20 @@
- name: setup firewall
block:
- name: install firewalld packages
yum:
ansible.builtin.dnf:
name:
- python3-firewall
- firewalld
state: present
- name: enable firewalld service
service:
ansible.builtin.service:
name: firewalld
enabled: true
state: started
- name: open firewall port
firewalld:
ansible.posix.firewalld:
service: "{{ item }}"
permanent: yes
immediate: yes
@@ -58,7 +58,7 @@
state: directory
- name: copy index file
template:
ansible.builtin.template:
src: index.txt
dest: "{{ apache_document_root }}{{ apache_server_name }}/index.html"
mode: 0644