Обновить playbook2_web.yml

This commit is contained in:
2026-04-06 03:56:09 +00:00
parent afd602cc17
commit cac365d915

View File

@@ -10,13 +10,6 @@
listen_port_https: 443 listen_port_https: 443
tasks: tasks:
- name: Update package cache (ALT Linux)
ansible.builtin.command:
cmd: apt-rpm update
changed_when: false
tags:
- angie
- name: Install Angie web server (ALT Linux) - name: Install Angie web server (ALT Linux)
ansible.builtin.package: ansible.builtin.package:
name: angie name: angie
@@ -55,6 +48,16 @@
tags: tags:
- ssl - ssl
- name: Create web root directory
ansible.builtin.file:
path: /var/www/html
state: directory
mode: '0755'
owner: root
group: root
tags:
- web
- name: Create index.html with server name - name: Create index.html with server name
ansible.builtin.copy: ansible.builtin.copy:
content: "{{ inventory_hostname }} by Angie!\n" content: "{{ inventory_hostname }} by Angie!\n"