Skip to content
This repository was archived by the owner on Mar 30, 2023. It is now read-only.

Commit 5a834c3

Browse files
committed
Move to use inventory_hostname
1 parent b3f6ae0 commit 5a834c3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

fake-dac-ansible/roles/data-acc/tasks/systemd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@
4444
become: yes
4545
become_user: root
4646
copy:
47-
src: {{item}}
47+
src: '{{item}}'
4848
dest: /etc/data-acc/pki
4949
remote_src: True
5050
owner: '{{data_acc_user}}'
5151
group: '{{data_acc_group}}'
5252
mode: 0700
5353
with_items:
54-
- /var/lib/etcd/test-cluster-name.pki/{{ansible_fqdn}}.pem
55-
- /var/lib/etcd/test-cluster-name.pki/{{ansible_fqdn}}-key.pem
56-
- /var/lib/etcd/test-cluster-name.pki/ca.pem
54+
- '/var/lib/etcd/test-cluster-name.pki/{{inventory_hostname}}.pem'
55+
- '/var/lib/etcd/test-cluster-name.pki/{{inventory_hostname}}-key.pem'
56+
- '/var/lib/etcd/test-cluster-name.pki/ca.pem'
5757

5858
- name: install data_acc.service configuration
5959
become: yes
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ETCDCTL_API=3
22
ETCDCTL_ENDPOINTS=https://localhost:2379
33
#ETCD_CLIENT_DEBUG=1
4-
ETCDCTL_CERT_FILE=/etc/data-acc/pki/{{ansible_fqdn}}.pem
5-
ETCDCTL_KEY_FILE=/etc/data-acc/pki/{{ansible_fqdn}}-key.pem
4+
ETCDCTL_CERT_FILE=/etc/data-acc/pki/{{ inventory_hostname }}.pem
5+
ETCDCTL_KEY_FILE=/etc/data-acc/pki/{{ inventory_hostname }}-key.pem
66
ETCDCTL_CA_FILE=/etc/data-acc/pki/ca.pem

0 commit comments

Comments
 (0)