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