index.html template

This commit is contained in:
Lulzette 2022-01-09 20:47:32 +00:00
parent bcbc0924bb
commit 334c4b083c
4 changed files with 14 additions and 8 deletions

View File

@ -7,8 +7,6 @@ trigger:
event:
exclude:
- promote
# - push
# - pull_request
steps:
- name: Check playbook

View File

@ -21,6 +21,14 @@
group: www-data
with_fileglob:
- src/*
- name: Copy index file
become: yes
template:
src: template/index.jinja2
dest: /var/www/index.html
owner: www-data
group: www-data
mode: 0644
- name: Copy config file
become: yes
copy:

View File

@ -1,6 +0,0 @@
<html>
<body>
<a href="basic.sh">wget -q -O - otp-bash.tw1.ru/basic.sh | bash</a>
<a href="nginx.sh">wget -q -O - otp-bash.tw1.ru/nginx.sh | bash</a>
</body>
</html>

6
template/index.jinja2 Normal file
View File

@ -0,0 +1,6 @@
<html>
<body>
<a href="basic.sh">wget -q -O - {{ansible_default_ipv4.address}}/basic.sh | bash</a>
<a href="nginx.sh">wget -q -O - {{ansible_default_ipv4.address}}/nginx.sh | bash</a>
</body>
</html>