Added binary upgrade option

This commit is contained in:
Greg Szabo 2017-06-23 00:34:42 +00:00
parent f38703a9f4
commit b715d3caf7
3 changed files with 12 additions and 2 deletions

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"

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
ansible/upgrade.yml Normal file
View File

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