Converted nginx-webserver index.html to php

This commit is contained in:
strNophix 2022-03-10 08:55:57 +01:00
parent b80bd3e913
commit 5108efea23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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>