mirror of https://github.com/ceph/ceph-ansible.git
41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
---
|
|
- hosts: localhost
|
|
gather_facts: false
|
|
become: no
|
|
tags: vagrant_setup
|
|
tasks:
|
|
|
|
|
|
- block:
|
|
- name: set_fact group_vars_path
|
|
set_fact:
|
|
group_vars_path: "{{ change_dir + '/inventory/group_vars' if 'external_clients' in change_dir.split('/') else change_dir + '/group_vars' }}"
|
|
|
|
- block:
|
|
- name: change ceph_repository to 'dev'
|
|
replace:
|
|
regexp: "ceph_repository:.*"
|
|
replace: "ceph_repository: dev"
|
|
dest: "{{ group_vars_path }}/all"
|
|
|
|
- block:
|
|
- name: ensure nfs_ganesha_stable is set to False
|
|
replace:
|
|
regexp: "nfs_ganesha_stable:.*"
|
|
replace: "nfs_ganesha_stable: false"
|
|
dest: "{{ group_vars_path }}/nfss"
|
|
|
|
- name: ensure nfs_ganesha_dev is set to True
|
|
replace:
|
|
regexp: "nfs_ganesha_dev:.*"
|
|
replace: "nfs_ganesha_dev: true"
|
|
dest: "{{ group_vars_path }}/nfss"
|
|
when:
|
|
- setup_nfs_dev_repo | default(True) | bool
|
|
- "'all_daemons' in group_vars_path.split('/')"
|
|
when: change_dir is defined
|
|
|
|
- name: print contents of {{ group_vars_path }}/all
|
|
command: "cat {{ group_vars_path }}/all"
|
|
when: dev_setup
|