Fixed delegate and password

This commit is contained in:
abrown38 committed 2024-04-16 19:06:36 +00:00
1 parent 4bd6682225
commit 797900ee69
1 file changed
+6 -6
@@ -18,7 +18,7 @@
mode: "0770"
owner: sg-transfer
group: sg-transfer
delegate_to: filetransfer
delegate_to: os-transfer
- name: Create credential file
file:
@@ -27,21 +27,21 @@
owner: root
group: root
mode: '0600'
delegate_to: filetransfer
delegate_to: os-transfer
- name: Write username into the credentials file
lineinfile:
path: "{{ credentials_file }}"
line: username=file-transfer@{{ win_project }}.loc
create: yes
delegate_to: filetransfer
delegate_to: os-transfer
- name: Write password into the credentials file
lineinfile:
path: "{{ credentials_file }}"
line: password="{{ transfer_user_password }}"
line: password={{ transfer_user_password }}
create: yes
delegate_to: filetransfer
delegate_to: os-transfer
- name: Mount Data
tags: mount_data
@@ -53,4 +53,4 @@
opts: "credentials={{ credentials_file }},iocharset=utf8"
state: mounted
fstype: cifs
delegate_to: filetransfer
delegate_to: os-transfer