--- - include_vars: "{{ ansible_os_family }}.yml" - name: install dashboard packages action: "{{ ansible_pkg_mgr }} name={{ item }} state=present" with_items: packages | union(packages_noarch) - name: set apache2 config template: src=ports.j2 dest=/etc/apache2/ports.conf backup=yes - name: remove ubuntu theme action: "{{ ansible_pkg_mgr }} name=openstack-dashboard-ubuntu-theme state=absent" - name: update horizon settings template: src=local_settings.py dest=/etc/openstack-dashboard/local_settings.py backup=yes - name: restart dashboard services service: name={{ item }} state=restarted enabled=yes with_items: services | union(services_noarch)