Skip to content

Commit

Permalink
Revert busted local_action
Browse files Browse the repository at this point in the history
  • Loading branch information
brianshumate committed Apr 23, 2017
1 parent 4950172 commit 1455534
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 28 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,9 @@
## v1.5.2

- Switch to local actions (addresses #13)

## v1.5.3

- Revert local_action tasks
- They are broken in every case I tested, and connection local is perfectly
valid for running things on the local host -_-
54 changes: 27 additions & 27 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,57 +10,57 @@

- name: Check Vault package checksum file
become: no
local_action:
stat:
path: "{{ role_path }}/files/vault_{{ vault_version }}_SHA256SUMS"
connection: local
stat:
path: "{{ role_path }}/files/vault_{{ vault_version }}_SHA256SUMS"
run_once: true
register: vault_checksum

- name: Get Vault package checksum file
become: no
local_action:
get_url:
url: "{{ vault_checksum_file_url }}"
dest: "{{ role_path }}/files/vault_{{ vault_version }}_SHA256SUMS"
connection: local
get_url:
url: "{{ vault_checksum_file_url }}"
dest: "{{ role_path }}/files/vault_{{ vault_version }}_SHA256SUMS"
run_once: true
tags: installation
when: vault_checksum.stat.exists == False

- name: Get Vault package checksum
become: no
local_action:
shell: "grep {{ vault_pkg }} {{ role_path }}/files/vault_{{ vault_version }}_SHA256SUMS"
connection: local
shell: "grep {{ vault_pkg }} {{ role_path }}/files/vault_{{ vault_version }}_SHA256SUMS"
run_once: true
register: vault_sha256
tags: installation

- name: Check Vault package file
become: no
local_action:
stat:
path: "{{ role_path }}/files/{{ vault_pkg }}"
connection: local
stat:
path: "{{ role_path }}/files/{{ vault_pkg }}"
run_once: true
register: vault_package

- name: Download Vault
become: no
local_action:
get_url:
url: "{{ vault_zip_url }}"
dest: "{{ role_path }}/files/{{ vault_pkg }}"
checksum: "sha256:{{ vault_sha256.stdout.split(' ')|first }}"
timeout: "42"
connection: local
get_url:
url: "{{ vault_zip_url }}"
dest: "{{ role_path }}/files/{{ vault_pkg }}"
checksum: "sha256:{{ vault_sha256.stdout.split(' ')|first }}"
timeout: "42"
run_once: true
tags: installation
when: vault_package.stat.exists == False

- name: Unarchive Vault
become: no
local_action:
unarchive:
src: "{{ role_path }}/files/{{ vault_pkg }}"
dest: "{{ role_path }}/files/"
creates: "{{ role_path }}/files/vault"
connection: local
unarchive:
src: "{{ role_path }}/files/{{ vault_pkg }}"
dest: "{{ role_path }}/files/"
creates: "{{ role_path }}/files/vault"
run_once: true
tags: installation

Expand All @@ -75,10 +75,10 @@

- name: Cleanup
become: no
local_action:
file:
path: "{{ item }}"
state: absent
connection: local
file:
path: "{{ item }}"
state: absent
with_fileglob: "{{ role_path }}/files/vault"
run_once: true
tags: installation
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.5.2
v1.5.3

0 comments on commit 1455534

Please sign in to comment.