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"