Skip to content

Commit

Permalink
fix: use dcos-version.json directly instead of copying it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Ulferts committed Mar 25, 2020
1 parent 9b45cc8 commit da23f05
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions roles/dcos_agent_windows/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,10 @@

- name: Windows | Create dcos_installation.fact.ps1
win_copy:
content: get-content {{ base_windows_dir }}\etc\ansible\facts.d\dcos_installation.fact -Raw | ConvertFrom-Json
content: get-content {{ base_windows_dir }}\\etc\\dcos-version.json -Raw | ConvertFrom-Json
dest: "{{ base_windows_dir }}\\etc\\ansible\\facts.d\\dcos_installation.fact.ps1"
when: previous_installation.stat.exists and previous_installation.stat.isreg
notify: reload facts

- name: Windows | Copy dcos-version.json to fact directory
win_copy:
src: "{{ base_windows_dir }}\\etc\\dcos-version.json"
dest: "{{ base_windows_dir }}\\etc\\ansible\\facts.d\\dcos_installation.fact"
remote_src: yes
when: previous_installation.stat.exists and previous_installation.stat.isreg
notify: reload facts

- name: Windows | Re-run setup to use custom facts
setup:
fact_path: "{{ base_windows_dir }}\\etc\\ansible\\facts.d\\dcos_installation.fact.ps1"
when: previous_installation.stat.exists and previous_installation.stat.isreg
notify: reload facts
- meta: flush_handlers

# TO DO: remove when Winpanda is able to create Mesos-DNS by its own
Expand Down

0 comments on commit da23f05

Please sign in to comment.