Added self-service script (for webserver)

This commit is contained in:
2022-02-17 14:19:42 +01:00
parent dd3fa5f344
commit d92076dacd
4 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,15 @@
- hosts: nginx
become: true
tasks:
- name: Install nginx
package:
name: nginx
state: present
update_cache: yes
notify: restart nginx
handlers:
- name: restart nginx
ansible.builtin.service:
name: nginx
state: restarted