examples/nginx_openstack/library/nginx/server/playbooks/install.yaml
---
- hosts: all
become: yes
tasks:
- name: Install EPEL repo
package:
name: epel-release
- name: Install nginx
package:
name: nginx
- name: Start nginx
service:
name: nginx
enabled: yes
state: started
- name: Set attributes
set_stats:
data:
site_config_dir: /etc/nginx/conf.d