Browse Source

Added binary upgrade option

pull/1943/head
Greg Szabo 8 years ago
parent
commit
b715d3caf7
3 changed files with 12 additions and 2 deletions
  1. +1
    -1
      ansible/roles/install/tasks/centos.yml
  2. +1
    -1
      ansible/roles/install/tasks/debian.yml
  3. +10
    -0
      ansible/upgrade.yml

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

@ -30,5 +30,5 @@
- name: Install package on CentOS/RedHat - name: Install package on CentOS/RedHat
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
yum: "pkg={{service}} update_cache=yes"
yum: "pkg={{service}} update_cache=yes state=latest"

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

@ -18,5 +18,5 @@
- name: Install package on Debian/Ubuntu - name: Install package on Debian/Ubuntu
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
apt: "pkg={{service}}"
apt: "pkg={{service}} update_cache=yes state=latest"

+ 10
- 0
ansible/upgrade.yml View File

@ -0,0 +1,10 @@
---
#variable "service" is required
- hosts: "{{ lookup('env','TF_VAR_TESTNET_NAME') }}"
roles:
- stop
- install
- start

Loading…
Cancel
Save