Restrict permissions to wesher config

This commit is contained in:
IamTheFij 2023-04-14 14:23:58 -07:00
parent fb6a899a26
commit fb25b52e7a

View File

@ -39,6 +39,8 @@
create: true
regexp: "^{{ item.split('=')[0] }}"
line: "{{ item }}"
owner: root
mode: "0600"
loop:
- WESHER_CLUSTER_KEY={{ wesher_key }}
- WESHER_JOIN={% for host in ansible_play_hosts %}{{ hostvars[host].ansible_default_ipv4.address }}{% if not loop.last %},{% endif %}{% endfor %}