You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
1.7 KiB

---
#Three commands to install a service on CentOS/RedHat
#wget -O - http://tendermint-packages.s3-website-us-west-1.amazonaws.com/centos/7/os/x86_64/RPM-GPG-KEY-Tendermint | rpm --import -
#wget -O /etc/yum.repos.d/tendermint.repo http://tendermint-packages.s3-website-us-west-1.amazonaws.com/centos/7/os/x86_64/tendermint.repo
#yum update && yum install basecoin
#This has a bug in Ansible 2.3: https://github.com/ansible/ansible/issues/20711
#- name: Add repository key on CentOS/RedHat
# when: ansible_os_family == "RedHat"
# rpm_key: key=http://tendermint-packages.s3-website-us-west-1.amazonaws.com/centos/7/os/x86_64/RPM-GPG-KEY-Tendermint
#Workaround
- name: Download repository key for CentOS/RedHat
when: ansible_os_family == "RedHat"
get_url: "url=http://tendermint-packages.s3-website-us-west-1.amazonaws.com/centos/7/os/x86_64/RPM-GPG-KEY-Tendermint dest=/root/RPM-GPG-KEY-Tendermint force=yes checksum=sha256:a8c61d4061697d2595562c703dbafbdfdcfa7f0c75a523ac84d5609d1b444abe"
- name: Import repository key for CentOS/RedHat
when: ansible_os_family == "RedHat"
command: "rpm --import /root/RPM-GPG-KEY-Tendermint"
- name: Install tendermint repository on CentOS/RedHat
when: ansible_os_family == "RedHat"
yum_repository:
name: tendermint
baseurl: http://tendermint-packages.s3-website-us-west-1.amazonaws.com/centos/7/os/x86_64
description: "Tendermint repo"
gpgcheck: yes
gpgkey: http://tendermint-packages.s3-website-us-west-1.amazonaws.com/centos/7/os/x86_64/RPM-GPG-KEY-Tendermint
# repo_gpgcheck: yes
- name: Install package on CentOS/RedHat
when: ansible_os_family == "RedHat"
yum: "pkg={{service}} update_cache=yes state=latest"