templates/ansible-splash/deploy.yml in prometheus-splash-0.4.5 vs templates/ansible-splash/deploy.yml in prometheus-splash-0.5.0

- old
+ new

@@ -1,49 +1,76 @@ --- -- name: PREPARE TESTING ocalhost entries for test +- name: PREPARE TESTING localhost entries for test #only for testing with Vagrant, remove for real usages hosts: supervision_master + become: yes tasks: - lineinfile: path: /etc/hosts regexp: '^127\.0\.0\.1' line: "127.0.0.1 localhost {{ groups['backend'][0] }} {{ groups['mq'][0] }} {{ groups['splash_nodes'][0] }} {{ groups['supervision_master'][0] }} {{ groups['supervision_gateway'][0] }}" owner: root group: root mode: '0644' when: patch_etc_hosts + - lineinfile: + path: /etc/hosts + state: absent + regexp: '^127\.0\.1\.1' + when: patch_etc_hosts +- name: PREPARE packages + hosts: supervision_master #for real usage => precise all + become: yes + tasks: + - apt: + update_cache: yes + force_apt_get: yes + cache_valid_time: 3600 + pkg: + - python-apt + - screen + - emacs-nox + - htop - name: Deploy RabbitMQ become: yes hosts: mq tasks: + - apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 - include_role: name: mq when: install_mq - name: Deploy Backend become: yes hosts: backend tasks: + - apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 - include_role: name: backend when: install_backend - name: Deploy Supervision Master become: yes hosts: supervision_master + tasks: + - apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 roles: - supervision_master - name: Deploy Supervision Gateway become: yes hosts: supervision_gateway + tasks: + - apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 roles: - supervision_gateway - name: Deploy Splash become: yes hosts: splash_nodes + tasks: + - apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 roles: - splash