29 lines
580 B
YAML
29 lines
580 B
YAML
---
|
|
- import_playbook: initialize.yml
|
|
|
|
|
|
- name: Install Nginx
|
|
hosts: jupiter
|
|
handlers:
|
|
- name: restart-nginx
|
|
import_tasks: tasks/nginx/services.yml
|
|
tasks:
|
|
- import_tasks: tasks/nginx/install.yml
|
|
|
|
- name: Install configuration
|
|
become: true
|
|
copy:
|
|
src: nginx.conf
|
|
dest: /etc/nginx/nginx.conf
|
|
notify:
|
|
- restart-nginx
|
|
|
|
- name: Set required SELinux options
|
|
become: true
|
|
seboolean:
|
|
name: httpd_can_network_connect
|
|
persistent: true
|
|
state: true
|
|
notify:
|
|
- restart-nginx
|