purge: reindent playbook

This commit reindents the playbook.
Also improve readability by adding an extra line between plays.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 60aa70a128)
pull/6724/head
Guillaume Abrioux 2021-07-13 14:26:40 +02:00 committed by Dimitri Savineau
parent e08cb421d4
commit fb825e0659
2 changed files with 695 additions and 809 deletions

View File

@ -14,13 +14,11 @@
- name: confirm whether user really meant to purge the cluster - name: confirm whether user really meant to purge the cluster
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
vars_prompt: vars_prompt:
- name: ireallymeanit - name: ireallymeanit
prompt: Are you sure you want to purge the cluster? prompt: Are you sure you want to purge the cluster?
default: 'no' default: 'no'
private: no private: no
tasks: tasks:
- name: exit playbook, if user did not mean to purge cluster - name: exit playbook, if user did not mean to purge cluster
fail: fail:
@ -31,29 +29,28 @@
invoking the playbook" invoking the playbook"
when: ireallymeanit != 'yes' when: ireallymeanit != 'yes'
- name: gather facts on all hosts - name: gather facts on all hosts
hosts: hosts:
- "{{ mon_group_name|default('mons') }}" - "{{ mon_group_name | default('mons') }}"
- "{{ osd_group_name|default('osds') }}" - "{{ osd_group_name | default('osds') }}"
- "{{ mds_group_name|default('mdss') }}" - "{{ mds_group_name | default('mdss') }}"
- "{{ rgw_group_name|default('rgws') }}" - "{{ rgw_group_name | default('rgws') }}"
- "{{ rbdmirror_group_name|default('rbdmirrors') }}" - "{{ rbdmirror_group_name | default('rbdmirrors') }}"
- "{{ nfs_group_name|default('nfss') }}" - "{{ nfs_group_name | default('nfss') }}"
- "{{ client_group_name|default('clients') }}" - "{{ client_group_name | default('clients') }}"
- "{{ mgr_group_name|default('mgrs') }}" - "{{ mgr_group_name | default('mgrs') }}"
- "{{ monitoring_group_name | default('monitoring') }}" - "{{ monitoring_group_name | default('monitoring') }}"
become: true become: true
tasks: tasks:
- debug: msg="gather facts on all Ceph hosts for following reference" - debug:
msg: "gather facts on all Ceph hosts for following reference"
- name: check there's no ceph kernel threads present - name: check there's no ceph kernel threads present
hosts: "{{ client_group_name|default('clients') }}" hosts: "{{ client_group_name | default('clients') }}"
become: true become: true
any_errors_fatal: true any_errors_fatal: true
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -109,19 +106,14 @@
- ceph - ceph
- libceph - libceph
- name: purge ceph nfs cluster
- name: purge ceph nfs cluster
vars: vars:
nfs_group_name: nfss nfs_group_name: nfss
hosts: "{{ nfs_group_name | default('nfss') }}"
hosts: "{{ nfs_group_name|default('nfss') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
become: true become: true
tasks: tasks:
- name: stop ceph nfss with systemd - name: stop ceph nfss with systemd
service: service:
name: nfs-ganesha name: nfs-ganesha
@ -129,22 +121,21 @@
failed_when: false failed_when: false
when: ansible_facts['service_mgr'] == 'systemd' when: ansible_facts['service_mgr'] == 'systemd'
- name: purge node-exporter - name: purge node-exporter
hosts: hosts:
- "{{ mon_group_name|default('mons') }}" - "{{ mon_group_name | default('mons') }}"
- "{{ osd_group_name|default('osds') }}" - "{{ osd_group_name | default('osds') }}"
- "{{ mds_group_name|default('mdss') }}" - "{{ mds_group_name | default('mdss') }}"
- "{{ rgw_group_name|default('rgws') }}" - "{{ rgw_group_name | default('rgws') }}"
- "{{ rbdmirror_group_name|default('rbdmirrors') }}" - "{{ rbdmirror_group_name | default('rbdmirrors') }}"
- "{{ nfs_group_name|default('nfss') }}" - "{{ nfs_group_name | default('nfss') }}"
- "{{ client_group_name|default('clients') }}" - "{{ client_group_name | default('clients') }}"
- "{{ mgr_group_name|default('mgrs') }}" - "{{ mgr_group_name | default('mgrs') }}"
- "{{ monitoring_group_name|default('monitoring') }}" - "{{ monitoring_group_name | default('monitoring') }}"
- clients - clients
- iscsigws - iscsigws
become: true become: true
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -182,7 +173,6 @@
- grafana-server - grafana-server
- prometheus - prometheus
- alertmanager - alertmanager
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -235,18 +225,12 @@
- name: purge ceph mds cluster - name: purge ceph mds cluster
vars: vars:
mds_group_name: mdss mds_group_name: mdss
hosts: "{{ mds_group_name | default('mdss') }}"
hosts: "{{ mds_group_name|default('mdss') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
become: true become: true
tasks: tasks:
- name: stop ceph mdss with systemd - name: stop ceph mdss with systemd
service: service:
name: ceph-mds@{{ ansible_facts['hostname'] }} name: ceph-mds@{{ ansible_facts['hostname'] }}
@ -256,18 +240,12 @@
- name: purge ceph mgr cluster - name: purge ceph mgr cluster
vars: vars:
mgr_group_name: mgrs mgr_group_name: mgrs
hosts: "{{ mgr_group_name | default('mgrs') }}"
hosts: "{{ mgr_group_name|default('mgrs') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
become: true become: true
tasks: tasks:
- name: stop ceph mgrs with systemd - name: stop ceph mgrs with systemd
service: service:
name: ceph-mgr@{{ ansible_facts['hostname'] }} name: ceph-mgr@{{ ansible_facts['hostname'] }}
@ -276,20 +254,15 @@
failed_when: false failed_when: false
when: ansible_facts['service_mgr'] == 'systemd' when: ansible_facts['service_mgr'] == 'systemd'
- name: purge rgwloadbalancer cluster
- name: purge rgwloadbalancer cluster
vars: vars:
rgwloadbalancer_group_name: rgwloadbalancers rgwloadbalancer_group_name: rgwloadbalancers
hosts: hosts:
- "{{ rgwloadbalancer_group_name|default('rgwloadbalancers') }}" - "{{ rgwloadbalancer_group_name | default('rgwloadbalancers') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
become: true become: true
tasks: tasks:
- name: stop rgwloadbalancer services - name: stop rgwloadbalancer services
service: service:
name: ['keepalived', 'haproxy'] name: ['keepalived', 'haproxy']
@ -297,17 +270,13 @@
enabled: no enabled: no
failed_when: false failed_when: false
- name: purge ceph rgw cluster
- name: purge ceph rgw cluster
vars: vars:
rgw_group_name: rgws rgw_group_name: rgws
hosts: "{{ rgw_group_name | default('rgws') }}"
hosts: "{{ rgw_group_name|default('rgws') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
become: true become: true
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -326,18 +295,12 @@
- name: purge ceph rbd-mirror cluster - name: purge ceph rbd-mirror cluster
vars: vars:
rbdmirror_group_name: rbdmirrors rbdmirror_group_name: rbdmirrors
hosts: "{{ rbdmirror_group_name | default('rbdmirrors') }}"
hosts: "{{ rbdmirror_group_name|default('rbdmirrors') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
become: true become: true
tasks: tasks:
- name: stop ceph rbd mirror with systemd - name: stop ceph rbd mirror with systemd
service: service:
name: "ceph-rbd-mirror@rbd-mirror.{{ ansible_facts['hostname'] }}" name: "ceph-rbd-mirror@rbd-mirror.{{ ansible_facts['hostname'] }}"
@ -346,17 +309,12 @@
- name: purge ceph osd cluster - name: purge ceph osd cluster
vars: vars:
osd_group_name: osds osd_group_name: osds
reboot_osd_node: False reboot_osd_node: False
hosts: "{{ osd_group_name | default('osds') }}"
hosts: "{{ osd_group_name|default('osds') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
become: true become: true
handlers: handlers:
- name: restart machine - name: restart machine
shell: sleep 2 && shutdown -r now "Ansible updates triggered" shell: sleep 2 && shutdown -r now "Ansible updates triggered"
@ -376,9 +334,7 @@
- name: remove data - name: remove data
shell: rm -rf /var/lib/ceph/* # noqa 302 shell: rm -rf /var/lib/ceph/* # noqa 302
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -603,19 +559,14 @@
with_items: "{{ resolved_parent_device }}" with_items: "{{ resolved_parent_device }}"
changed_when: false changed_when: false
- name: purge ceph mon cluster
- name: purge ceph mon cluster
vars: vars:
mon_group_name: mons mon_group_name: mons
hosts: "{{ mon_group_name|default('mons') }}" hosts: "{{ mon_group_name|default('mons') }}"
gather_facts: false # already gathered previously gather_facts: false # already gathered previously
become: true become: true
tasks: tasks:
- name: stop ceph mons with systemd - name: stop ceph mons with systemd
service: service:
name: "ceph-{{ item }}@{{ ansible_facts['hostname'] }}" name: "ceph-{{ item }}@{{ ansible_facts['hostname'] }}"
@ -626,7 +577,6 @@
- mon - mon
- mgr - mgr
- name: remove monitor store and bootstrap keys - name: remove monitor store and bootstrap keys
file: file:
path: "{{ item }}" path: "{{ item }}"
@ -640,6 +590,7 @@
- /var/lib/ceph/bootstrap-mgr - /var/lib/ceph/bootstrap-mgr
- /var/lib/ceph/tmp - /var/lib/ceph/tmp
- name: purge ceph-crash daemons - name: purge ceph-crash daemons
hosts: hosts:
- "{{ mon_group_name | default('mons') }}" - "{{ mon_group_name | default('mons') }}"
@ -665,12 +616,10 @@
- name: final cleanup - check any running ceph, purge ceph packages, purge config and remove data - name: final cleanup - check any running ceph, purge ceph packages, purge config and remove data
vars: vars:
# When set to true both groups of packages are purged. # When set to true both groups of packages are purged.
# This can cause problem with qemu-kvm # This can cause problem with qemu-kvm
purge_all_packages: true purge_all_packages: true
ceph_packages: ceph_packages:
- ceph - ceph
- ceph-base - ceph-base
@ -684,7 +633,6 @@
- ceph-radosgw - ceph-radosgw
- ceph-grafana-dashboards - ceph-grafana-dashboards
- rbd-mirror - rbd-mirror
ceph_remaining_packages: ceph_remaining_packages:
- libcephfs2 - libcephfs2
- librados2 - librados2
@ -696,26 +644,21 @@
- python3-rados - python3-rados
- python3-rbd - python3-rbd
- python3-rgw - python3-rgw
extra_packages: extra_packages:
- keepalived - keepalived
- haproxy - haproxy
hosts: hosts:
- "{{ mon_group_name|default('mons') }}" - "{{ mon_group_name | default('mons') }}"
- "{{ osd_group_name|default('osds') }}" - "{{ osd_group_name | default('osds') }}"
- "{{ mds_group_name|default('mdss') }}" - "{{ mds_group_name | default('mdss') }}"
- "{{ rgw_group_name|default('rgws') }}" - "{{ rgw_group_name | default('rgws') }}"
- "{{ rbdmirror_group_name|default('rbdmirrors') }}" - "{{ rbdmirror_group_name | default('rbdmirrors') }}"
- "{{ nfs_group_name|default('nfss') }}" - "{{ nfs_group_name | default('nfss') }}"
- "{{ client_group_name|default('clients') }}" - "{{ client_group_name | default('clients') }}"
- "{{ mgr_group_name|default('mgrs') }}" - "{{ mgr_group_name | default('mgrs') }}"
- "{{ monitoring_group_name|default('monitoring') }}" - "{{ monitoring_group_name | default('monitoring') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
become: true become: true
handlers: handlers:
- name: get osd data and lockbox mount points - name: get osd data and lockbox mount points
shell: "(grep /var/lib/ceph/osd /proc/mounts || echo -n) | awk '{ print $2 }'" shell: "(grep /var/lib/ceph/osd /proc/mounts || echo -n) | awk '{ print $2 }'"
@ -733,9 +676,7 @@
- name: remove data - name: remove data
shell: rm -rf /var/lib/ceph/* # noqa 302 shell: rm -rf /var/lib/ceph/* # noqa 302
listen: "remove data" listen: "remove data"
tasks: tasks:
- name: purge ceph packages with yum - name: purge ceph packages with yum
yum: yum:
name: "{{ ceph_packages }}" name: "{{ ceph_packages }}"
@ -864,13 +805,9 @@
- name: purge fetch directory - name: purge fetch directory
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
tasks: tasks:
- name: set fetch_directory value if not set - name: set fetch_directory value if not set
set_fact: set_fact:
fetch_directory: "fetch/" fetch_directory: "fetch/"

View File

@ -3,11 +3,8 @@
# It removes: packages, containers, configuration files and ALL THE DATA # It removes: packages, containers, configuration files and ALL THE DATA
- name: confirm whether user really meant to purge the cluster - name: confirm whether user really meant to purge the cluster
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
vars_prompt: vars_prompt:
- name: ireallymeanit - name: ireallymeanit
prompt: > prompt: >
@ -17,7 +14,6 @@
Do you want to continue? Do you want to continue?
default: 'no' default: 'no'
private: no private: no
tasks: tasks:
- name: exit playbook, if user did not mean to purge cluster - name: exit playbook, if user did not mean to purge cluster
fail: fail:
@ -33,11 +29,11 @@
ceph_docker_registry: "docker.io" ceph_docker_registry: "docker.io"
when: ceph_docker_registry is not defined when: ceph_docker_registry is not defined
- name: check there's no ceph kernel threads present - name: check there's no ceph kernel threads present
hosts: "{{ client_group_name|default('clients') }}" hosts: "{{ client_group_name|default('clients') }}"
become: true become: true
any_errors_fatal: true any_errors_fatal: true
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -95,13 +91,9 @@
- name: purge ceph nfs cluster - name: purge ceph nfs cluster
hosts: "{{ nfs_group_name | default('nfss') }}"
hosts: "{{ nfs_group_name|default('nfss') }}"
become: true become: true
tasks: tasks:
- name: disable ceph nfs service - name: disable ceph nfs service
service: service:
name: "ceph-nfs@{{ ansible_facts['hostname'] }}" name: "ceph-nfs@{{ ansible_facts['hostname'] }}"
@ -125,13 +117,9 @@
- name: purge ceph mds cluster - name: purge ceph mds cluster
hosts: "{{ mds_group_name | default('mdss') }}"
hosts: "{{ mds_group_name|default('mdss') }}"
become: true become: true
tasks: tasks:
- name: disable ceph mds service - name: disable ceph mds service
service: service:
name: "ceph-mds@{{ ansible_facts['hostname'] }}" name: "ceph-mds@{{ ansible_facts['hostname'] }}"
@ -146,11 +134,9 @@
- name: purge ceph iscsigws cluster - name: purge ceph iscsigws cluster
hosts: "{{ iscsi_gw_group_name | default('iscsigws') }}"
hosts: "{{ iscsi_gw_group_name|default('iscsigws') }}"
become: true become: true
tasks: tasks:
- name: disable ceph iscsigw services - name: disable ceph iscsigw services
service: service:
name: "{{ item }}" name: "{{ item }}"
@ -174,11 +160,9 @@
- name: purge ceph mgr cluster - name: purge ceph mgr cluster
hosts: "{{ mgr_group_name | default('mgrs') }}"
hosts: "{{ mgr_group_name|default('mgrs') }}"
become: true become: true
tasks: tasks:
- name: disable ceph mgr service - name: disable ceph mgr service
service: service:
name: "ceph-mgr@{{ ansible_facts['hostname'] }}" name: "ceph-mgr@{{ ansible_facts['hostname'] }}"
@ -193,11 +177,8 @@
- name: purge ceph rgw cluster - name: purge ceph rgw cluster
hosts: "{{ rgw_group_name | default('rgws') }}"
hosts: "{{ rgw_group_name|default('rgws') }}"
become: true become: true
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -221,13 +202,9 @@
- name: purge ceph rbd-mirror cluster - name: purge ceph rbd-mirror cluster
hosts: "{{ rbdmirror_group_name | default('rbdmirrors') }}"
hosts: "{{ rbdmirror_group_name|default('rbdmirrors') }}"
become: true become: true
tasks: tasks:
- name: disable ceph rbd-mirror service - name: disable ceph rbd-mirror service
service: service:
name: "ceph-rbd-mirror@rbd-mirror.{{ ansible_facts['hostname'] }}" name: "ceph-rbd-mirror@rbd-mirror.{{ ansible_facts['hostname'] }}"
@ -242,14 +219,10 @@
- name: purge ceph osd cluster - name: purge ceph osd cluster
hosts: "{{ osd_group_name | default('osds') }}" hosts: "{{ osd_group_name | default('osds') }}"
gather_facts: true gather_facts: true
become: true become: true
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -335,14 +308,11 @@
- "{{ playbook_dir }}/group_vars/osds.yml" - "{{ playbook_dir }}/group_vars/osds.yml"
skip: true skip: true
- name: purge ceph mon cluster - name: purge ceph mon cluster
hosts: "{{ mon_group_name|default('mons') }}" hosts: "{{ mon_group_name|default('mons') }}"
become: true become: true
tasks: tasks:
# since mgr are now collocated with mons by default # since mgr are now collocated with mons by default
- name: disable ceph mon and mgr service - name: disable ceph mon and mgr service
service: service:
@ -364,23 +334,19 @@
- name: purge node-exporter - name: purge node-exporter
hosts: hosts:
- "{{ mon_group_name|default('mons') }}" - "{{ mon_group_name | default('mons') }}"
- "{{ osd_group_name|default('osds') }}" - "{{ osd_group_name | default('osds') }}"
- "{{ mds_group_name|default('mdss') }}" - "{{ mds_group_name | default('mdss') }}"
- "{{ rgw_group_name|default('rgws') }}" - "{{ rgw_group_name | default('rgws') }}"
- "{{ rbdmirror_group_name|default('rbdmirrors') }}" - "{{ rbdmirror_group_name | default('rbdmirrors') }}"
- "{{ nfs_group_name|default('nfss') }}" - "{{ nfs_group_name | default('nfss') }}"
- "{{ mgr_group_name|default('mgrs') }}" - "{{ mgr_group_name | default('mgrs') }}"
- "{{ monitoring_group_name | default('monitoring') }}" - "{{ monitoring_group_name | default('monitoring') }}"
- iscsigws - iscsigws
- clients - clients
gather_facts: false gather_facts: false
become: true become: true
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -409,20 +375,16 @@
- remove_img - remove_img
when: dashboard_enabled | bool when: dashboard_enabled | bool
- name: purge ceph-grafana - name: purge ceph-grafana
hosts: monitoring hosts: monitoring
gather_facts: false gather_facts: false
become: true become: true
vars: vars:
grafana_services: grafana_services:
- grafana-server - grafana-server
- prometheus - prometheus
- alertmanager - alertmanager
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -472,6 +434,7 @@
failed_when: false failed_when: false
when: dashboard_enabled | bool when: dashboard_enabled | bool
- name: purge ceph-crash containers - name: purge ceph-crash containers
hosts: hosts:
- "{{ mon_group_name | default('mons') }}" - "{{ mon_group_name | default('mons') }}"
@ -501,22 +464,19 @@
path: /var/lib/ceph/crash path: /var/lib/ceph/crash
state: absent state: absent
- name: check container hosts - name: check container hosts
hosts: hosts:
- "{{ mon_group_name|default('mons') }}" - "{{ mon_group_name | default('mons') }}"
- "{{ osd_group_name|default('osds') }}" - "{{ osd_group_name | default('osds') }}"
- "{{ mds_group_name|default('mdss') }}" - "{{ mds_group_name | default('mdss') }}"
- "{{ rgw_group_name|default('rgws') }}" - "{{ rgw_group_name | default('rgws') }}"
- "{{ rbdmirror_group_name|default('rbdmirrors') }}" - "{{ rbdmirror_group_name | default('rbdmirrors') }}"
- "{{ nfs_group_name|default('nfss') }}" - "{{ nfs_group_name | default('nfss') }}"
- "{{ mgr_group_name|default('mgrs') }}" - "{{ mgr_group_name | default('mgrs') }}"
gather_facts: true gather_facts: true
become: true become: true
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -548,21 +508,17 @@
- name: final cleanup - name: final cleanup
hosts: hosts:
- "{{ mon_group_name|default('mons') }}" - "{{ mon_group_name | default('mons') }}"
- "{{ osd_group_name|default('osds') }}" - "{{ osd_group_name | default('osds') }}"
- "{{ mds_group_name|default('mdss') }}" - "{{ mds_group_name | default('mdss') }}"
- "{{ rgw_group_name|default('rgws') }}" - "{{ rgw_group_name | default('rgws') }}"
- "{{ rbdmirror_group_name|default('rbdmirrors') }}" - "{{ rbdmirror_group_name | default('rbdmirrors') }}"
- "{{ nfs_group_name|default('nfss') }}" - "{{ nfs_group_name | default('nfss') }}"
- "{{ mgr_group_name|default('mgrs') }}" - "{{ mgr_group_name | default('mgrs') }}"
- "{{ monitoring_group_name|default('monitoring') }}" - "{{ monitoring_group_name | default('monitoring') }}"
become: true become: true
tags: with_pkg tags: with_pkg
tasks: tasks:
- import_role: - import_role:
name: ceph-defaults name: ceph-defaults
@ -668,20 +624,16 @@
- name: purge ceph directories - name: purge ceph directories
hosts: hosts:
- "{{ mon_group_name|default('mons') }}" - "{{ mon_group_name | default('mons') }}"
- "{{ osd_group_name|default('osds') }}" - "{{ osd_group_name | default('osds') }}"
- "{{ mds_group_name|default('mdss') }}" - "{{ mds_group_name | default('mdss') }}"
- "{{ rgw_group_name|default('rgws') }}" - "{{ rgw_group_name | default('rgws') }}"
- "{{ rbdmirror_group_name|default('rbdmirrors') }}" - "{{ rbdmirror_group_name | default('rbdmirrors') }}"
- "{{ nfs_group_name|default('nfss') }}" - "{{ nfs_group_name | default('nfss') }}"
- "{{ mgr_group_name|default('mgrs') }}" - "{{ mgr_group_name | default('mgrs') }}"
gather_facts: false # Already gathered previously gather_facts: false # Already gathered previously
become: true become: true
tasks: tasks:
- name: purge ceph directories for "{{ ansible_facts['hostname'] }}" and ceph socket - name: purge ceph directories for "{{ ansible_facts['hostname'] }}" and ceph socket
file: file:
@ -703,14 +655,11 @@
shell: rm -rf /var/lib/docker/* # noqa 302 shell: rm -rf /var/lib/docker/* # noqa 302
when: not is_atomic | bool when: not is_atomic | bool
- name: purge fetch directory - name: purge fetch directory
hosts: localhost hosts: localhost
gather_facts: false gather_facts: false
tasks: tasks:
- name: set fetch_directory value if not set - name: set fetch_directory value if not set
set_fact: set_fact:
fetch_directory: "fetch/" fetch_directory: "fetch/"