diff --git a/roles/daemon/tasks/daemon-stream.yml b/roles/daemon/tasks/daemon-stream.yml new file mode 100644 index 0000000..8bbb94e --- /dev/null +++ b/roles/daemon/tasks/daemon-stream.yml @@ -0,0 +1,9 @@ +--- +- name: Stream daemon bootstrap + ansible.builtin.uri: + url: "{{ global.stream_chain_endpoint }}" + method: POST + dest: "/home/{{ global.user }}/{{daemon.bootstrap_file}}" + mode: "0644" + owner: "{{ global.user }}" + group: "{{ global.user }}" diff --git a/roles/daemon/tasks/main.yml b/roles/daemon/tasks/main.yml index 0af3047..feed772 100644 --- a/roles/daemon/tasks/main.yml +++ b/roles/daemon/tasks/main.yml @@ -91,3 +91,13 @@ tags: - daemon-stop - never + +- name: Stream Daemon Bootstrap + ansible.builtin.include_tasks: + file: daemon-stream.yml + apply: + tags: + - daemon-stream + tags: + - daemon-stream + - never diff --git a/user.yml b/user.yml index 53a1a08..1113df0 100644 --- a/user.yml +++ b/user.yml @@ -2,6 +2,7 @@ global: user: # FluxNode User Account reboot_if_required: # (default: false) Boolean: true - Reboot after OS Upgrade if required / false - Don't reboot after OS Upgrade + stream_chain_endpoint: # String: endpoint to access daemon stream chain function 'http://:/flux/streamchain' user: dufus: # This can be named anything.. just needs to match the user var on the host vars