Skip to content

Commit

Permalink
ansible-scylla-node: Rename cluster_local_files_path to manager_local…
Browse files Browse the repository at this point in the history
…_files_path

This variable is being used only by the manager_agents task.
  • Loading branch information
igorribeiroduarte committed Mar 18, 2024
1 parent 0dd900d commit b2a45de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ansible-scylla-node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ install_only: false
# Change here or override in vars
scylla_nic: "{{ ansible_default_ipv4.interface }}"

cluster_local_files_path: "{{ playbook_dir }}"
manager_local_files_path: "{{ playbook_dir }}"

# online|offline - offline will disable all the attepts to download packages
# node_exporter will need to be installed manually
Expand Down
6 changes: 3 additions & 3 deletions ansible-scylla-node/tasks/manager_agents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- name: check for pre-existing agent-token file
stat:
path: "{{ cluster_local_files_path }}/scyllamgr_auth_token.txt"
path: "{{ manager_local_files_path }}/scyllamgr_auth_token.txt"
register: token_file_stat
run_once: true
delegate_to: localhost
Expand All @@ -20,14 +20,14 @@
copy:
content: |
{{ scyllamgr_auth_token.stdout }}
dest: "{{ cluster_local_files_path }}/scyllamgr_auth_token.txt"
dest: "{{ manager_local_files_path }}/scyllamgr_auth_token.txt"
delegate_to: localhost
run_once: true
when: token_file_stat.stat.islnk is not defined

- name: read the key from auth token file
slurp:
src: "{{ cluster_local_files_path }}/scyllamgr_auth_token.txt"
src: "{{ manager_local_files_path }}/scyllamgr_auth_token.txt"
register: b64auth_token
delegate_to: localhost
run_once: true
Expand Down

0 comments on commit b2a45de

Please sign in to comment.