@installdoc/ansible-gas-station
Version:
An Ansible playbook that provisions your network with software from GitHub Awesome lists, developed with disaster recovery in mind ⛽🔥🤤
16 lines (14 loc) • 568 B
YAML
- name: "Ensure '%USERPROFILE%/Documents/PowerShell' directory exists"
become_user: "{{ user.username }}"
ansible.windows.win_file:
path: '%USERPROFILE%\Documents\PowerShell'
state: directory
- name: Configure initialization script for PowerShell
become_user: "{{ user.username }}"
community.windows.win_lineinfile:
path: '%USERPROFILE%\Documents\PowerShell\Microsoft.PowerShell_profile.ps1'
create: true
backup: true
regex: "Invoke-Expression (&starship init powershell)"
line: "Invoke-Expression (&starship init powershell)"