index.html template
This commit is contained in:
parent
bcbc0924bb
commit
334c4b083c
@ -7,8 +7,6 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
exclude:
|
exclude:
|
||||||
- promote
|
- promote
|
||||||
# - push
|
|
||||||
# - pull_request
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check playbook
|
- name: Check playbook
|
||||||
|
@ -21,6 +21,14 @@
|
|||||||
group: www-data
|
group: www-data
|
||||||
with_fileglob:
|
with_fileglob:
|
||||||
- src/*
|
- 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
|
- name: Copy config file
|
||||||
become: yes
|
become: yes
|
||||||
copy:
|
copy:
|
||||||
|
@ -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
6
template/index.jinja2
Normal 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>
|
Loading…
Reference in New Issue
Block a user