summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades/etcd
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2016-11-16 16:30:28 -0500
committerRussell Teague <rteague@redhat.com>2016-11-17 15:10:37 -0500
commit7e0c346c8406eb6142e8d38fdec4e13236f3cdc6 (patch)
tree2bc96a95a6b60cdcc7278966886b14079c71f7eb /playbooks/common/openshift-cluster/upgrades/etcd
parentac1b73841a109f6e9f6947434a9e1aca382e61c6 (diff)
downloadopenshift-7e0c346c8406eb6142e8d38fdec4e13236f3cdc6.tar.gz
openshift-7e0c346c8406eb6142e8d38fdec4e13236f3cdc6.tar.bz2
openshift-7e0c346c8406eb6142e8d38fdec4e13236f3cdc6.tar.xz
openshift-7e0c346c8406eb6142e8d38fdec4e13236f3cdc6.zip
Refactor to use Ansible package module
The Ansible package module will call the correct package manager for the underlying OS.
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/etcd')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/etcd/backup.yml2
-rw-r--r--playbooks/common/openshift-cluster/upgrades/etcd/containerized_tasks.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/etcd/backup.yml b/playbooks/common/openshift-cluster/upgrades/etcd/backup.yml
index 57b156b1c..57d4fe4b6 100644
--- a/playbooks/common/openshift-cluster/upgrades/etcd/backup.yml
+++ b/playbooks/common/openshift-cluster/upgrades/etcd/backup.yml
@@ -42,7 +42,7 @@
when: (embedded_etcd | bool) and (etcd_disk_usage.stdout|int > avail_disk.stdout|int)
- name: Install etcd (for etcdctl)
- action: "{{ ansible_pkg_mgr }} name=etcd state=present"
+ package: name=etcd state=present
when: not openshift.common.is_atomic | bool
- name: Generate etcd backup
diff --git a/playbooks/common/openshift-cluster/upgrades/etcd/containerized_tasks.yml b/playbooks/common/openshift-cluster/upgrades/etcd/containerized_tasks.yml
index 35f391f8c..f88981a0b 100644
--- a/playbooks/common/openshift-cluster/upgrades/etcd/containerized_tasks.yml
+++ b/playbooks/common/openshift-cluster/upgrades/etcd/containerized_tasks.yml
@@ -30,7 +30,7 @@
## will fail on atomic host. We need to revisit how to do etcd backups there as
## the container may be newer than etcdctl on the host. Assumes etcd3 obsoletes etcd (7.3.1)
- name: Upgrade etcd for etcdctl when not atomic
- action: "{{ ansible_pkg_mgr }} name=etcd ensure=latest"
+ package: name=etcd state=latest
when: not openshift.common.is_atomic | bool
- name: Verify cluster is healthy