From b848d2be4cae23e4c43ce306cffe0016d4c26c2f Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Wed, 7 Nov 2018 12:54:45 -0800 Subject: [PATCH] don't use "role" or "roles" to include roles see 3f62fc585f60fcaecbc783316a99cd8314aab062 Signed-off-by: Noah Watkins --- infrastructure-playbooks/shrink-osd.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/infrastructure-playbooks/shrink-osd.yml b/infrastructure-playbooks/shrink-osd.yml index e0135284b..1d31525bf 100644 --- a/infrastructure-playbooks/shrink-osd.yml +++ b/infrastructure-playbooks/shrink-osd.yml @@ -38,7 +38,8 @@ mon_group_name: mons osd_group_name: osds - pre_tasks: + tasks: + # pre-task for following import - name: exit playbook, if user did not mean to shrink cluster fail: msg: "Exiting shrink-osd playbook, no osd(s) was/were removed.. @@ -55,11 +56,11 @@ -e osd_to_kill=0,1,2,3 argument." when: osd_to_kill is not defined - roles: - - ceph-defaults - - post_tasks: + - import_role: + name: ceph-defaults + private: false + # post-task for preceding import - name: set_fact docker_exec_cmd build docker exec command (containerized) set_fact: docker_exec_cmd: "docker exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}"