Restructure folder layout
This commit is contained in:
15
roles/nginx/tasks/main.yml
Normal file
15
roles/nginx/tasks/main.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
- name: Ensure nginx is installed
|
||||
ansible.builtin.package:
|
||||
name: nginx
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Copy nginx config file
|
||||
ansible.builtin.copy:
|
||||
src: nginx.conf
|
||||
dest: /etc/nginx/conf.d/test.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
notify: Restart nginx
|
||||
|
||||
Reference in New Issue
Block a user