summaryrefslogtreecommitdiffstats
path: root/roles/etcd_upgrade/tasks/main.yml
blob: 129c69d6b6fddd4ba1096829c4f421cc9bb4df57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
# INPUT r_etcd_upgrade_action
- name: Fail if invalid etcd_upgrade_action provided
  fail:
    msg: "etcd_upgrade role can only be called with 'upgrade'"
  when:
  - r_etcd_upgrade_action not in ['upgrade']

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

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