main.yml 348 B

123456789
  1. ---
  2. - name: Fail if invalid r_etcd_common_action provided
  3. fail:
  4. msg: "etcd_common role can only be called with 'noop' or 'backup' or 'drop_etcdctl'"
  5. when: r_etcd_common_action not in ['noop', 'backup', 'drop_etcdctl']
  6. - name: Include main action task file
  7. include: "{{ r_etcd_common_action }}.yml"
  8. when: r_etcd_common_action != "noop"