--- - include_vars: "{{ ansible_os_family }}.yml" - name: install http packages action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" with_items: http_packages - name: set http config lineinfile: dest={{ http_config_file }} regexp='^Listen' line='Listen {{ internal_ip }}:80' - name: restart http services service: name={{ http_service }} state=restarted enabled=yes - name: write services to monitor list lineinfile: dest=/opt/service create=yes line='{{ http_service }}' - name: install dashboard packages action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" with_items: packages | union(packages_noarch) - name: remove ubuntu theme action: "{{ ansible_pkg_mgr }} name=openstack-dashboard-ubuntu-theme state=absent" - name: update ubuntu horizon settings template: src=local_settings_debian dest=/etc/openstack-dashboard/local_settings.py backup=yes when: ansible_os_family == 'Debian' - name: update redhat version horizon settings template: src=local_settings_redhat dest=/etc/openstack-dashboard/local_settings backup=yes when: ansible_os_family == 'RedHat' - name: restart dashboard services service: name={{ item }} state=restarted enabled=yes with_items: services | union(services_noarch)