mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 11:47:21 +00:00
add to space domain text file
This commit is contained in:
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,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
|
||||
Reference in new issue
Block a user