add to space domain text file

This commit is contained in:
abrown38 committed 2024-09-06 16:07:47 +01:00
1 parent 8a49590720
commit b160516078
3 files changed
+15

No files matched your search

@@ -15,6 +15,13 @@
path: "{{ mft_directory }}"
state: directory
- name: Add entry to space-domains.txt
lineinfile:
path: "{{ space_domain_path }}"
state: present
regexp: "^{{ os_project }}"
line: "{{ os_project }}-{{ win_project }}"
- name: Copy smb-credential template to os-transfer
template:
dest: "{{ credentials_path }}"
@@ -15,6 +15,13 @@
path: "{{ mft_directory }}"
state: absent
- name: Remove entry from space-domains.txt
lineinfile:
path: "{{ space_domain_path }}"
state: absent
regexp: "^{{ os_project }}"
line: "{{ os_project }}-{{ win_project }}"
- name: Remove smb-credential template
file:
path: "{{ credentials_path }}"
+1
View File
@@ -1,3 +1,4 @@
mount_directory: /mnt/windows/{{ os_project }}-{{ win_project }}
mft_directory: /mnt/os-transfer/windows-mft/{{ os_project }}-{{ win_project }}
space_domain_path: /root/scripts/space-domains.txt
credentials_path: /root/windows-envs/.{{ os_project }}-{{ win_project }}-smbcredentials