mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-27 15:57:21 +00:00
17 lines
570 B
YAML
17 lines
570 B
YAML
- name: Create the .bash_profile file with specified content
|
|
win_file:
|
|
path: "C:\\Users\\{{ item }}\\.bash_profile"
|
|
state: file
|
|
content: |
|
|
eval "$('/C/tools/miniconda3/Scripts/conda.exe' 'shell.bash' 'hook')"
|
|
with_items:
|
|
- user1 # Replace with actual usernames
|
|
- user2 # Add more users as needed
|
|
|
|
- name: Ensure the .bash_profile file is hidden
|
|
win_shell: |
|
|
attrib +h "C:\\Users\\{{ item }}\\.bash_profile"
|
|
with_items:
|
|
- user1 # Replace with actual usernames
|
|
- user2 # Add more users as needed
|