mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 14:07:21 +00:00
add entry to space-project-map
This commit is contained in:
1 parent
59c8378aac
commit
f873bd461a
3 files changed
+15
No files matched your search
@@ -22,6 +22,13 @@
|
|||||||
regexp: "^{{ os_project }}"
|
regexp: "^{{ os_project }}"
|
||||||
line: "{{ os_project }}-{{ win_project }}"
|
line: "{{ os_project }}-{{ win_project }}"
|
||||||
|
|
||||||
|
- name: Add entry to space-project-map
|
||||||
|
lineinfile:
|
||||||
|
path: "{{ space_project_map_path }}"
|
||||||
|
state: present
|
||||||
|
regexp: "^{{ os_project }}-{{ win_project }}"
|
||||||
|
line: "{{ os_project }}-{{ win_project }} {{ project_zone }}"
|
||||||
|
|
||||||
- name: Copy smb-credential template to os-transfer
|
- name: Copy smb-credential template to os-transfer
|
||||||
template:
|
template:
|
||||||
dest: "{{ credentials_path }}"
|
dest: "{{ credentials_path }}"
|
||||||
|
|||||||
@@ -22,6 +22,13 @@
|
|||||||
regexp: "^{{ os_project }}"
|
regexp: "^{{ os_project }}"
|
||||||
line: "{{ os_project }}-{{ win_project }}"
|
line: "{{ os_project }}-{{ win_project }}"
|
||||||
|
|
||||||
|
- name: Remove entry to space-project-map
|
||||||
|
lineinfile:
|
||||||
|
path: "{{ space_project_map_path }}"
|
||||||
|
state: absent
|
||||||
|
regexp: "^{{ os_project }}-{{ win_project }}"
|
||||||
|
line: "{{ os_project }}-{{ win_project }} {{ project_zone }}"
|
||||||
|
|
||||||
- name: Remove smb-credential template
|
- name: Remove smb-credential template
|
||||||
file:
|
file:
|
||||||
path: "{{ credentials_path }}"
|
path: "{{ credentials_path }}"
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
mount_directory: /mnt/windows/{{ os_project }}-{{ win_project }}
|
mount_directory: /mnt/windows/{{ os_project }}-{{ win_project }}
|
||||||
mft_directory: /mnt/os-transfer/windows-mft/{{ os_project }}-{{ win_project }}
|
mft_directory: /mnt/os-transfer/windows-mft/{{ os_project }}-{{ win_project }}
|
||||||
space_domain_path: /root/scripts/space-domains.txt
|
space_domain_path: /root/scripts/space-domains.txt
|
||||||
|
space_project_map_path: /root/scripts/space-project-map
|
||||||
credentials_path: /root/windows-envs/.{{ os_project }}-{{ win_project }}-smbcredentials
|
credentials_path: /root/windows-envs/.{{ os_project }}-{{ win_project }}-smbcredentials
|
||||||
Reference in new issue
Block a user