2017-07-17 23:26:48 +08:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
|
|
|
gather_facts: false
|
2017-07-26 22:29:50 +08:00
|
|
|
become: no
|
2019-04-01 23:46:15 +08:00
|
|
|
tags: vagrant_setup
|
2017-07-17 23:26:48 +08:00
|
|
|
tasks:
|
|
|
|
|
2018-07-20 05:38:08 +08:00
|
|
|
|
2019-01-29 19:16:28 +08:00
|
|
|
- block:
|
2019-05-14 20:27:19 +08:00
|
|
|
- name: set_fact group_vars_path
|
|
|
|
set_fact:
|
2019-06-26 00:03:27 +08:00
|
|
|
group_vars_path: "{{ change_dir + '/hosts' if 'ooo-collocation' in change_dir.split('/') else change_dir + '/group_vars' }}"
|
2018-07-20 05:38:08 +08:00
|
|
|
|
2019-05-14 20:27:19 +08:00
|
|
|
- block:
|
|
|
|
- name: change ceph_repository to 'dev'
|
|
|
|
replace:
|
|
|
|
regexp: "ceph_repository:.*"
|
|
|
|
replace: "ceph_repository: dev"
|
2019-06-26 00:03:27 +08:00
|
|
|
dest: "{{ group_vars_path }}/all"
|
2017-07-17 23:26:48 +08:00
|
|
|
|
2019-06-26 00:03:27 +08:00
|
|
|
- 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"
|
2017-08-22 01:36:38 +08:00
|
|
|
|
2019-06-26 00:03:27 +08:00
|
|
|
- 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: "'all_daemons' in group_vars_path.split('/')"
|
2019-05-14 20:27:19 +08:00
|
|
|
when: change_dir is defined
|
|
|
|
|
2019-06-26 00:03:27 +08:00
|
|
|
- name: print contents of {{ group_vars_path }}/all
|
|
|
|
command: "cat {{ group_vars_path }}/all"
|
2019-04-01 23:46:15 +08:00
|
|
|
when: dev_setup
|