---
# INPUT r_etcd_upgrade_action
- name: Fail if invalid etcd_upgrade_action provided
  fail:
    msg: "etcd_upgrade role can only be called with 'upgrade' or 'backup'"
  when:
  - r_etcd_upgrade_action not in ['upgrade', 'backup']

- name: Detecting Atomic Host Operating System
  stat:
    path: /run/ostree-booted
  register: l_ostree_booted

- include: "{{ r_etcd_upgrade_action }}.yml"
