2017-07-17 23:26:48 +08:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
gather_facts: false
|
2017-07-26 22:29:50 +08:00
|
|
|
become: no
|
2017-07-17 23:26:48 +08:00
|
|
|
tags:
|
|
|
|
- vagrant_setup
|
|
|
|
tasks:
|
|
|
|
|
2018-07-20 05:38:08 +08:00
|
|
|
|
2019-01-29 19:16:28 +08:00
|
|
|
- block:
|
|
|
|
- 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' }}"
|
2018-07-20 05:38:08 +08:00
|
|
|
|
2019-01-29 19:16:28 +08:00
|
|
|
- name: change ceph_repository to 'dev'
|
|
|
|
replace:
|
|
|
|
regexp: "ceph_repository:.*"
|
|
|
|
replace: "ceph_repository: dev"
|
|
|
|
dest: "{{ group_vars_path }}"
|
|
|
|
when: change_dir is defined
|
2017-07-17 23:26:48 +08:00
|
|
|
|
2019-01-29 19:16:28 +08:00
|
|
|
- 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
|
2017-08-22 01:36:38 +08:00
|
|
|
|
2019-01-29 19:16:28 +08:00
|
|
|
- name: print contents of {{ group_vars_path }}
|
|
|
|
command: "cat {{ group_vars_path }}"
|
|
|
|
when: dev_setup
|