# Copyright © 2020 Interplanetary Database Association e.V., # Planetmint and IPDB software contributors. # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 - hosts: all gather_facts: false vars_files: - vars/stack-config.yml vars: action: "{{ operation }}" home_dir: "{{ home_path }}" serial: 1 pre_tasks: - raw: "apt-get -qqy update && apt-get install -qqy python-minimal python-pip || dnf -y install python27 || which python" - name: Gathering Facts setup: #aka gather_facts roles: - { role: py36, when: stack_type|lower == "local" } - { role: docker, when: stack_type|lower == "docker" or stack_type|lower == "cloud" } - mongodb - hosts: all vars_files: - vars/stack-config.yml vars: action: "{{ operation }}" home_dir: "{{ home_path }}" roles: - tendermint - planetmint