Add separate playbook for koschei-web
This commit is contained in:
parent
2d8833f720
commit
b9d8827f57
1 changed files with 35 additions and 0 deletions
35
playbooks/groups/koschei-web.yml
Normal file
35
playbooks/groups/koschei-web.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
# stg only for now
|
||||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=koschei-web-stg"
|
||||
|
||||
- name: install koschei-frontend
|
||||
hosts: koschei-web-stg
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- base
|
||||
- rkhunter
|
||||
- nagios/client
|
||||
- hosts
|
||||
- fas_client
|
||||
- builder_repo
|
||||
- collectd/base
|
||||
- apache
|
||||
- koschei/frontend
|
||||
- sudo
|
||||
- { role: openvpn/client, when: env != "staging" }
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/yumrepos.yml"
|
||||
- include: "{{ tasks }}/2fa_client.yml"
|
||||
- include: "{{ tasks }}/motd.yml"
|
||||
- include: "{{ tasks }}/mod_wsgi.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue