Converted nginx-webserver index.html to php
This commit is contained in:
parent
b80bd3e913
commit
5108efea23
@ -9,6 +9,6 @@
|
|||||||
notify: restart nginx
|
notify: restart nginx
|
||||||
- name: Copy over index.html
|
- name: Copy over index.html
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: ./templates/index.html.j2
|
src: ./templates/index.php.j2
|
||||||
dest: /var/www/html/index.html
|
dest: /var/www/html/index.php
|
||||||
become: true
|
become: true
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<h1><?php echo 'Hello, World!'; ?></h1>
|
||||||
<p>Hostname: {{ ansible_facts.nodename }}</p>
|
<p>Hostname: {{ ansible_facts.nodename }}</p>
|
||||||
<p>OS: {{ ansible_facts.distribution }} {{ ansible_facts.distribution_version }}</p>
|
<p>OS: {{ ansible_facts.distribution }} {{ ansible_facts.distribution_version }}</p>
|
||||||
<p>Kernel: {{ ansible_facts.kernel }}</p>
|
<p>Kernel: {{ ansible_facts.kernel }}</p>
|
Loading…
x
Reference in New Issue
Block a user