Skip to content
Snippets Groups Projects
Commit 5e8094cf authored by jurgenhaas's avatar jurgenhaas
Browse files

Create directories as regular user, otherwise gitflow operations will fail later on

parent 3d63155e
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
file:
path: '{{ directory.src }}'
state: directory
become: no
- name: Read directories in working copy
shell: find . -type d
......@@ -19,6 +20,7 @@
path: '{{ directory.dest }}/{{ item }}'
state: directory
with_items: '{{ list_config_paths.stdout_lines }}'
become: no
- name: Read file name in working copy
shell: find . -type f
......@@ -32,6 +34,7 @@
dest: '{{ directory.dest }}/{{ item }}'
remote_src: yes
with_items: '{{ list_config_files.stdout_lines }}'
become: no
when: item|regex_replace('/\.', '/') == item
- name: Delete in config path
......@@ -39,6 +42,7 @@
path: '{{ directory.dest }}/{{ item|regex_replace("/\.", "/") }}'
state: absent
with_items: '{{ list_config_files.stdout_lines }}'
become: no
when: item|regex_replace('/\.', '/') != item
- name: Delete working directory
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment