Обновить playbook2_web.yml
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user