-
Notifications
You must be signed in to change notification settings - Fork 0
/
horizon.yml
25 lines (20 loc) · 902 Bytes
/
horizon.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#---
# - name: "Openstack Horizon"
# hosts: openstack
# remote_user: root
# gather_facts: yes
#
# tasks:
- name: "Install horizon"
yum: name=openstack-dashboard enablerepo=centos-openstack-ocata,epel state=present
- name: "Backup Original horizon configuation"
copy: remote_src=True src=/etc/openstack-dashboard/local_settings dest=/etc/openstack-dashboard/local_settings.org
- name: "copy horizon configuation"
copy: src=local_settings dest=/etc/openstack-dashboard/local_settings mode=640 owner=root group=apache
- name: "replace ansible_host in horizon"
replace: dest=/etc/openstack-dashboard/local_settings regexp='10.0.0.30' replace={{ ansible_host }} backup=yes
- name: "start and enable httpd and memchache"
service: name={{ item }} state=restarted enabled=yes
with_items:
- httpd
- memcached