WIP3
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=PHP daemon to serve the Ansible deck
|
||||
|
||||
[Service]
|
||||
ExecStart=/root/ansible-php-deck.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
sudo /bin/php -S 0.0.0.0:{{ php_port }} -t {{ workshop_web_path }}/deck-ansible/ > /var/log/php_deck.log 2>&1
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
$workshop_image =<<<ALLDONE
|
||||
{{ workshop_image }}
|
||||
ALLDONE;
|
||||
|
||||
$workshop_name =<<<ALLDONE
|
||||
{{ workshop_name }}
|
||||
ALLDONE;
|
||||
|
||||
$workshop_presenter =<<<ALLDONE
|
||||
{{ workshop_presenter }}
|
||||
ALLDONE;
|
||||
|
||||
$workshop_title =<<<ALLDONE
|
||||
{{ workshop_title }}
|
||||
ALLDONE;
|
||||
|
||||
$workshop_message =<<<ALLDONE
|
||||
{{ workshop_message }}
|
||||
ALLDONE;
|
||||
|
||||
$terminal_prompt = '[ansible@redhat] $';
|
||||
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
header("location:/deck-ansible/");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user