--- - name: consolidate file paths set_fact: devstack_plugin_tobiko_dir: >- {{ devstack_plugin_tobiko_dir | realpath }} devstack_plugin_tobiko_src_dir: >- {{ devstack_plugin_tobiko_src_dir | realpath }} - name: ensure '{{ devstack_plugin_tobiko_dir }}' exists become: true become_user: root file: path: '{{ devstack_plugin_tobiko_dir }}' state: directory mode: '0755' owner: stack group: stack - name: copy '{{ devstack_plugin_tobiko_src_dir }}' synchronize: group: false owner: false src: '{{ devstack_plugin_tobiko_src_dir }}/.' dest: '{{ devstack_plugin_tobiko_dir }}' use_ssh_args: true recursive: true rsync_opts: - '--exclude-from={{ devstack_plugin_tobiko_src_dir }}/.gitignore' become: true become_user: stack