Browse Source

Added devops_path to Ansible playbooks

pull/1943/head
Greg Szabo 7 years ago
parent
commit
92869b5b35
3 changed files with 6 additions and 5 deletions
  1. +1
    -0
      ansible/roles/install/defaults/main.yml
  2. +3
    -3
      ansible/roles/install/tasks/centos.yml
  3. +2
    -2
      ansible/roles/install/tasks/debian.yml

+ 1
- 0
ansible/roles/install/defaults/main.yml View File

@ -1,4 +1,5 @@
---
release_install: true
binary: "{{ lookup('env','GOPATH') | default('') }}/bin/{{service}}"
devops_path: false

+ 3
- 3
ansible/roles/install/tasks/centos.yml View File

@ -13,7 +13,7 @@
#Workaround
- name: Download repository key for CentOS/RedHat
when: ansible_os_family == "RedHat"
get_url: "url=https://tendermint-packages.interblock.io/centos/7/os/x86_64/RPM-GPG-KEY-Tendermint dest=/root/RPM-GPG-KEY-Tendermint force=yes checksum=sha256:a8c61d4061697d2595562c703dbafbdfdcfa7f0c75a523ac84d5609d1b444abe"
get_url: "url=https://tendermint-packages.interblock.io/{{ (devops_path | default(false) | bool) | ternary('devops/','') }}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"
@ -22,10 +22,10 @@
when: ansible_os_family == "RedHat"
yum_repository:
name: tendermint
baseurl: https://tendermint-packages.interblock.io/centos/7/os/x86_64
baseurl: https://tendermint-packages.interblock.io/{{ (devops_path | default(false) | bool) | ternary('devops/','') }}centos/7/os/x86_64
description: "Tendermint repo"
gpgcheck: yes
gpgkey: https://tendermint-packages.interblock.io/centos/7/os/x86_64/RPM-GPG-KEY-Tendermint
gpgkey: https://tendermint-packages.interblock.io/{{ (devops_path | default(false) | bool) | ternary('devops/','') }}centos/7/os/x86_64/RPM-GPG-KEY-Tendermint
# repo_gpgcheck: yes
- name: Install package on CentOS/RedHat


+ 2
- 2
ansible/roles/install/tasks/debian.yml View File

@ -8,13 +8,13 @@
- name: Add repository key on Debian/Ubuntu
when: ansible_os_family == "Debian"
apt_key:
url: https://tendermint-packages.interblock.io/centos/7/os/x86_64/RPM-GPG-KEY-Tendermint
url: https://tendermint-packages.interblock.io/{{ (devops_path | default(false) | bool) | ternary('devops/','') }}centos/7/os/x86_64/RPM-GPG-KEY-Tendermint
id: 2122CBE9
- name: Install tendermint repository on Debian/Ubuntu
when: ansible_os_family == "Debian"
apt_repository:
repo: deb https://tendermint-packages.interblock.io/debian stable main
repo: deb https://tendermint-packages.interblock.io/{{ (devops_path | default(false) | bool) | ternary('devops/','') }}debian stable main
- name: Install package on Debian/Ubuntu
when: ansible_os_family == "Debian"


Loading…
Cancel
Save