From 6e2caf5a062ccc4740fd6a66a0b324741337d6d3 Mon Sep 17 00:00:00 2001 From: Greg Szabo Date: Tue, 19 Sep 2017 23:51:40 -0400 Subject: [PATCH] sudo fix --- ansible/roles/setfile/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/setfile/tasks/main.yml b/ansible/roles/setfile/tasks/main.yml index fca02d683..442072dda 100644 --- a/ansible/roles/setfile/tasks/main.yml +++ b/ansible/roles/setfile/tasks/main.yml @@ -6,11 +6,13 @@ register: downloaded connection: local run_once: yes + become: no - name: Figure out file source set_fact: compiledsource: "{{ (downloaded.skipped is defined) | ternary(source, downloaded.dest) }}" connection: local + become: no - name: Extract file to destination when: compiledsource | regex_search('\\.(zip|tar|tar\\.gz|tgz|tb2|tbz|tbz2|tar\\.bz2|txz|tar\\.xz)$')