diff --git a/roles/cael.git/defaults/main.yml b/playbooks/directories.yml similarity index 100% rename from roles/cael.git/defaults/main.yml rename to playbooks/directories.yml diff --git a/playbooks/update_git.yml b/playbooks/update_git.yml index 3f03a87..85ca237 100644 --- a/playbooks/update_git.yml +++ b/playbooks/update_git.yml @@ -2,6 +2,14 @@ - hosts: www.solusar.de become: true + vars_files: + - directories.yml - roles: - - cael.git \ No newline at end of file + tasks: + + - name: pull new stuff into cloned git repos + shell: git pull + args: + chdir: "{{ item.path }}" + executable: /bin/bash + with_items: "{{ git_directories }}" \ No newline at end of file diff --git a/roles/cael.git/tasks/main.yml b/roles/cael.git/tasks/main.yml deleted file mode 100644 index 0b03244..0000000 --- a/roles/cael.git/tasks/main.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- - -- name: ensure git - package: - name: git - state: present - -#- name: register directorys in defaults/main.yml -# find: -# paths: "{{ git_directories }}" -# file_type: directory -# register: found_directories - -- name: pull latest changes - shell: git pull - args: - chdir: "{{ item.path }}" - executable: /bin/bash - with_items: "{{ git_directories }}" \ No newline at end of file