Skip to content

Commit

Permalink
Merge pull request ansible-collections#22 from itewk/master
Browse files Browse the repository at this point in the history
set 'become: no' on 'local_action's.
  • Loading branch information
brianshumate authored Dec 20, 2016
2 parents bba23a8 + 4aca6e1 commit 966cb04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@

- name: Writing key locally to share with other servers that are new
local_action: copy content={{ consul_raw_key }} dest=/tmp/consul_raw.key
become: no
when: consul_raw_key is defined and bootstrap_marker.stat.exists

- name: Reading key for servers that are missing it
Expand All @@ -77,6 +78,7 @@

- name: Deleting key file
local_action: file path=/tmp/consul_raw.key state=absent
become: no
when: consul_raw_key is defined and bootstrap_marker.stat.exists

- block:
Expand Down

0 comments on commit 966cb04

Please sign in to comment.