--- - hosts: localhost gather_facts: false become: no tags: - vagrant_setup tasks: - name: change ceph_stable to False replace: regexp: "ceph_stable:.*" replace: "ceph_stable: False" dest: "{{ change_dir }}/group_vars/all" when: change_dir is defined - name: set ceph_dev to True lineinfile: line: "ceph_dev: True" dest: "{{ change_dir }}/group_vars/all" when: change_dir is defined - name: print contents of {{ change_dir }}/group_vars/all command: "cat {{ change_dir }}/group_vars/all"