mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-22 07:52:44 +00:00
Reorganized package installations in Ansible to make tomlconfig faster
This commit is contained in:
@@ -32,3 +32,20 @@
|
||||
when: ansible_os_family == "RedHat"
|
||||
yum: "pkg={{service}} update_cache=yes state=latest"
|
||||
|
||||
# The below commands are required so that the tomlconfig playbook can run.
|
||||
|
||||
- name: Install epel-release on CentOS/RedHat
|
||||
when: ansible_os_family == "RedHat"
|
||||
yum: "pkg=epel-release update_cache=yes state=latest"
|
||||
|
||||
- name: Install pip on CentOS/RedHat
|
||||
when: ansible_os_family == "RedHat"
|
||||
yum: "pkg={{item}} state=latest"
|
||||
with_items:
|
||||
- python2-pip
|
||||
- python-virtualenv
|
||||
|
||||
- name: Install toml
|
||||
when: ansible_os_family == "RedHat"
|
||||
pip: name=toml
|
||||
|
||||
|
||||
@@ -20,3 +20,9 @@
|
||||
when: ansible_os_family == "Debian"
|
||||
apt: "pkg={{service}} update_cache=yes state=latest"
|
||||
|
||||
# The below command is required to use the tomlconfig playbook.
|
||||
|
||||
- name: Install package on Debian/Ubuntu
|
||||
when: ansible_os_family == "Debian"
|
||||
apt: "pkg=python-toml state=latest"
|
||||
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
|
||||
- name: Install epel-release on CentOS/RedHat
|
||||
when: ansible_os_family == "RedHat"
|
||||
yum: "pkg=epel-release update_cache=yes state=latest"
|
||||
|
||||
- name: Install pip on CentOS/RedHat
|
||||
when: ansible_os_family == "RedHat"
|
||||
yum: "pkg={{item}} state=latest"
|
||||
with_items:
|
||||
- python2-pip
|
||||
- python-virtualenv
|
||||
|
||||
- name: Install toml
|
||||
when: ansible_os_family == "RedHat"
|
||||
pip: name=toml
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
|
||||
- name: Install package on Debian/Ubuntu
|
||||
when: ansible_os_family == "Debian"
|
||||
apt: "pkg=python-toml state=latest"
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
---
|
||||
|
||||
- include: debian.yml
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- include: centos.yml
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
- name: Update config.toml with json
|
||||
when: jsonconfig is defined
|
||||
tomlconfig: "dest=/etc/{{service}}/tendermint/config.toml json='{{jsonconfig}}'"
|
||||
|
||||
Reference in New Issue
Block a user