diff options
author | Tim Bielawa <tbielawa@redhat.com> | 2017-02-10 08:00:16 -0800 |
---|---|---|
committer | Tim Bielawa <tbielawa@redhat.com> | 2017-02-14 09:16:29 -0800 |
commit | beecf009010a2ffa45598c6a04933f5644f3f629 (patch) | |
tree | 83bd8876fffdb64194eec25660abb9a6a861ba2a /playbooks/common/openshift-cluster/upgrades/etcd/upgrade.yml | |
parent | 950f5ba4e4f7b849eb6bc75bcd86ab9bd29a9dc8 (diff) | |
download | openshift-beecf009010a2ffa45598c6a04933f5644f3f629.tar.gz openshift-beecf009010a2ffa45598c6a04933f5644f3f629.tar.bz2 openshift-beecf009010a2ffa45598c6a04933f5644f3f629.tar.xz openshift-beecf009010a2ffa45598c6a04933f5644f3f629.zip |
Trying to fix up/audit note some changes
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/etcd/upgrade.yml')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/etcd/upgrade.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/etcd/upgrade.yml b/playbooks/common/openshift-cluster/upgrades/etcd/upgrade.yml index 690858c53..a9b5b94e6 100644 --- a/playbooks/common/openshift-cluster/upgrades/etcd/upgrade.yml +++ b/playbooks/common/openshift-cluster/upgrades/etcd/upgrade.yml @@ -9,21 +9,36 @@ register: etcd_rpm_version failed_when: false when: not openshift.common.is_containerized | bool + # AUDIT:changed_when: `false` because we are only inspecting + # state, not manipulating anything + changed_when: false + - name: Record containerized etcd version command: docker exec etcd_container rpm -qa --qf '%{version}' etcd\* register: etcd_container_version failed_when: false when: openshift.common.is_containerized | bool + # AUDIT:changed_when: `false` because we are only inspecting + # state, not manipulating anything + changed_when: false + - name: Record containerized etcd version command: docker exec etcd_container rpm -qa --qf '%{version}' etcd\* register: etcd_container_version failed_when: false when: openshift.common.is_containerized | bool and not openshift.common.is_etcd_system_container | bool + # AUDIT:changed_when: `false` because we are only inspecting + # state, not manipulating anything + changed_when: false + - name: Record containerized etcd version command: runc exec etcd_container rpm -qa --qf '%{version}' etcd\* register: etcd_container_version failed_when: false when: openshift.common.is_containerized | bool and openshift.common.is_etcd_system_container | bool + # AUDIT:changed_when: `false` because we are only inspecting + # state, not manipulating anything + changed_when: false # I really dislike this copy/pasta but I wasn't able to find a way to get it to loop # through hosts, then loop through tasks only when appropriate |