1
0
Fork 0
yatf/nginx_setup.yml

20 lines
409 B
YAML
Raw Normal View History

---
- name: Configure nginx
hosts: all
vars:
ansible_python_interpreter: /usr/bin/python3
tasks:
- name: install nginx
ansible.builtin.package:
name: nginx
- name: copy config
ansible.builtin.template:
src: nginx.conf.j2
dest: /etc/nginx/nginx.conf
- name: restart service
ansible.builtin.service:
name: nginx
state: restarted