diff --git a/main.yml b/main.yml index ff1b283..946f84a 100644 --- a/main.yml +++ b/main.yml @@ -1,11 +1,10 @@ --- - hosts: local - become: false vars: local_path: '/tmp/eee' roles: - {role: core, tags: [default]} - {role: vim, tags: [vim]} - {role: youcompleteme, tags: [vim,youcompleteme]} - - {role: secure, sudo: yes, tags: [secure]} + - {role: secure, become: yes, tags: [secure]} - {role: test, tags: [test]} diff --git a/roles/core/tasks/main.yml b/roles/core/tasks/main.yml index 3f33a2a..90c0a9d 100644 --- a/roles/core/tasks/main.yml +++ b/roles/core/tasks/main.yml @@ -2,16 +2,14 @@ file: path: "{{ local_path }}/{{ item.path }}" state: directory - with_filetree: "/skel/" + with_filetree: "skel/" when: item.state == 'directory' - name: Link files file: - #src: "/skel/{{ item }}" src: "{{ item.src }}" dest: "{{ local_path }}/{{ item.path }}" state: link - become: no - with_filetree: "/skel/" + with_filetree: "skel/" when: item.state == 'file' - name: Clone fzf git: