mirror of https://github.com/ceph/ceph-ansible.git
34 lines
945 B
YAML
34 lines
945 B
YAML
---
|
|
- hosts: localhost
|
|
gather_facts: false
|
|
become: no
|
|
tags:
|
|
- vagrant_setup
|
|
tasks:
|
|
|
|
|
|
- name: set_fact group_vars_path
|
|
set_fact:
|
|
group_vars_path: "{{ change_dir + '/hosts' if 'ooo-collocation' in change_dir.split('/') else change_dir + '/group_vars/all' }}"
|
|
|
|
- name: change ceph_repository to 'dev'
|
|
replace:
|
|
regexp: "ceph_repository:.*"
|
|
replace: "ceph_repository: dev"
|
|
dest: "{{ group_vars_path }}"
|
|
when: change_dir is defined
|
|
|
|
- name: change nfs-ganesha repository to 'dev'
|
|
replace:
|
|
regexp: "nfs_ganesha_stable=.*"
|
|
replace: "nfs_ganesha_stable=False"
|
|
dest: "{{ group_vars_path }}"
|
|
replace:
|
|
regexp: "nfs_ganesha_dev:.*"
|
|
replace: "nfs_ganesha_dev=True"
|
|
dest: "{{ group_vars_path }}"
|
|
when: change_dir is defined
|
|
|
|
- name: print contents of {{ group_vars_path }}
|
|
command: "cat {{ group_vars_path }}"
|