From bbc5f859721a2d079b2dd0932aed56adcd283707 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sat, 7 Apr 2018 22:38:20 +0000 Subject: [PATCH] Continue ansible work --- main.yml | 3 +-- roles/core/tasks/main.yml | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) 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: