Migrated to ansible roles

This commit is contained in:
2022-03-05 13:31:25 +01:00
parent 67efc68362
commit 0912579ad1
11 changed files with 75 additions and 48 deletions

View File

@ -0,0 +1,14 @@
---
# tasks file for nginx-webserver
- name: Install nginx
package:
name: nginx
state: present
update_cache: yes
become: true
notify: restart nginx
- name: Copy over index.html
ansible.builtin.template:
src: ./templates/index.html.j2
dest: /var/www/html/index.html
become: true