ansible-ci.yml

This commit is contained in:
s0dy 2018-11-18 18:45:43 +01:00
parent b59e6befdc
commit 87824114a6
4 changed files with 27 additions and 13 deletions

View File

@ -4,6 +4,10 @@
become_user: root
tasks:
- name: Delete last deploy
command: rm -rf /var/www/html/*
- name: Copy all files to web server
synchronize:
src: /builds/aviortheking/blog_imie/project/

View File

@ -157,11 +157,11 @@ DocumentRoot "/var/www/html"
#
# Require all granted
AuthType Basic
AuthName "Restricted Content"
AuthBasicProvider file
AuthUserFile /etc/httpd/passwords
Require valid-user
#AuthType Basic
#AuthName "Restricted Content"
#AuthBasicProvider file
#AuthUserFile /etc/httpd/passwords
#Require valid-user
</Directory>

18
project/index.html Normal file
View File

@ -0,0 +1,18 @@
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
<article>
<h1>HIFIVE!</h1>
<div>
<p>Sorry for the inconvenience but we&rsquo;re performing some maintenance at the moment. If you need to you can always <a href="mailto:#">contact us</a>, otherwise we&rsquo;ll be back online shortly!</p>
<p>&mdash; The Team</p>
</div>
</article>

View File

@ -1,8 +0,0 @@
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Test deploy_to_webserver</p>'; ?>
</body>
</html>