From cac365d915066f70dc4b5714beb3b8d2df3ca8db Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 6 Apr 2026 03:56:09 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20playbook2=5Fweb.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbook2_web.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/playbook2_web.yml b/playbook2_web.yml index 68ce5d9..c8a26ac 100644 --- a/playbook2_web.yml +++ b/playbook2_web.yml @@ -10,13 +10,6 @@ listen_port_https: 443 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) ansible.builtin.package: name: angie @@ -55,6 +48,16 @@ tags: - 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 ansible.builtin.copy: content: "{{ inventory_hostname }} by Angie!\n"