iad2: adjust logserver playbook to handle iad2 log server

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2020-05-08 15:08:55 -07:00
parent cec764a806
commit 927ff7f17c

View file

@ -1,7 +1,7 @@
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=log01.phx2.fedoraproject.org" - import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=logging"
- name: make the box be real - name: make the box be real
hosts: log01.phx2.fedoraproject.org hosts: logging
user: root user: root
gather_facts: True gather_facts: True
@ -28,7 +28,7 @@
owner_group: apache owner_group: apache
service: HTTP service: HTTP
host: "admin.fedoraproject.org" host: "admin.fedoraproject.org"
when: env == "production" when: env == "production" and datacenter != 'iad2'
pre_tasks: pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml" - import_tasks: "{{ tasks_path }}/yumrepos.yml"