Skip to content

Commit

Permalink
Fixed an issue where a tempfile was not created locally, but rather o…
Browse files Browse the repository at this point in the history
…n the remote machine (#149)
  • Loading branch information
Tompage1994 authored Apr 2, 2024
1 parent b2adfa0 commit 18fe75f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelogs/fragments/148-delegation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- Fixed an issue where a tempfile was not created locally, but rather on the remote machine
...
3 changes: 1 addition & 2 deletions roles/ee_builder/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

- name: Push to controller
when: ee_create_controller_def
delegate_to: localhost
block:
- name: Create temporary folder
ansible.builtin.tempfile:
Expand All @@ -19,12 +20,10 @@
src: ee_controller.yaml.j2
dest: "{{ controller_ee.path }}/ee_controller.yaml"
mode: '0644'
delegate_to: localhost

- name: Include templated variable
ansible.builtin.include_vars:
file: "{{ controller_ee.path }}/ee_controller.yaml"
delegate_to: localhost

- name: Display templated variables
ansible.builtin.debug:
Expand Down

0 comments on commit 18fe75f

Please sign in to comment.