Browse Source

sudo fix

pull/1943/head
Greg Szabo 7 years ago
parent
commit
6e2caf5a06
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ansible/roles/setfile/tasks/main.yml

+ 2
- 0
ansible/roles/setfile/tasks/main.yml View File

@ -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)$')


Loading…
Cancel
Save