xlab-si/xopera-opera

View on GitHub
examples/nginx_openstack/library/nginx/server/playbooks/install.yaml

Summary

Maintainability
Test Coverage
---
- 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