Created
October 13, 2016 10:50
-
-
Save my-janala/0cab2b0ab04eab3e7668744926fa9c9a to your computer and use it in GitHub Desktop.
playbook for provision webserver.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: "tag_role_webserver:&tag_env_{{env}}" | |
become: true | |
vars_files: | |
- "../vars/env_{{env}}.yml" | |
- "../vars/secure_{{env}}.yml" | |
- "../vars/env_{{env}}_splunk.yml" | |
vars: | |
ansible_role: "webserver" | |
datadog_api_key: "<key>" | |
datadog_checks: | |
nginx: | |
init_config: | |
instances: | |
- nginx_status_url: 'http://127.0.0.1:82/nginx_status/' | |
pm2: | |
init_config: | |
instances: | |
- command: '/home/jenkins/pm2_jlist' | |
roles: | |
- ntp | |
- hostname | |
- dns | |
- users | |
- nodejs | |
- service-webserver | |
- { role: Datadog.datadog, when: env == 'prod' } | |
- { role: datadog-pm2, when: env == 'prod' } | |
- splunk | |
- logrotate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment