diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-02-14 13:52:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 13:52:08 -0500 |
commit | dcbc04be7d1f621d1cf95168c8d1265279d04ed1 (patch) | |
tree | b5ceb3d12b098c75817e2984dc3417929ca24ad1 /playbooks/common/openshift-cluster/upgrades/etcd/upgrade.yml | |
parent | b61593976cedf3946ede5b6c5cc9bd80b0747cf3 (diff) | |
parent | 0b1c1c2c524bfb932ab0e15f63f464673c00e651 (diff) | |
download | openshift-dcbc04be7d1f621d1cf95168c8d1265279d04ed1.tar.gz openshift-dcbc04be7d1f621d1cf95168c8d1265279d04ed1.tar.bz2 openshift-dcbc04be7d1f621d1cf95168c8d1265279d04ed1.tar.xz openshift-dcbc04be7d1f621d1cf95168c8d1265279d04ed1.zip |
Merge pull request #3355 from tbielawa/idempotency_please_work
Idempotency please work
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 |