Premier commit

This commit is contained in:
gitea committed 2026-10-18 16:41:04 +02:00
commit 518c7ab04b
49 files changed
+1120

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
---
- hosts: all
post_tasks:
- name: Check all port numbers are accessible from current host
wait_for:
host: "{{inventory_hostname}}"
port: "{{ item }}"
state: started
delay: 0
timeout: 1
ignore_errors: yes
with_items:
- 443
- 80
- 8080
pre_tasks:
- name: "debug"
debug:
msg: "PRE task played at {{ansible_date_time.date}} {{ansible_date_time.time}}"
tasks:
- name: "Main tasks :"
debug:
msg: " server {{inventory_hostname}}"
- name: "Main task"
become: true
apt:
name: apache2
state: present
- name: "Start Apache"
become: true
ansible.builtin.service:
name: apache2
state: started