Added self-service script (for webserver)
This commit is contained in:
15
playbooks/install_nginx.yml
Normal file
15
playbooks/install_nginx.yml
Normal 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
|
Reference in New Issue
Block a user