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