Anyone have recommendations (and/or example playbooks) that install programs that get installed into %userprofile%/AppData?
I’m trying to install Slack with Ansible and win_chocolatey but I can only get Slack to install as the ansible_user.
Anyone have recommendations (and/or example playbooks) that install programs that get installed into %userprofile%/AppData?
I’m trying to install Slack with Ansible and win_chocolatey but I can only get Slack to install as the ansible_user.
Ansible will Execute with the ansible_user so Slack gets installed in the ansible_user profile
This is not Ansible Fault, its Slack Installer/Architekture Fault.
Slack got a Workaround for this Look here
https://get.slack.help/hc/en-us/articles/212475728-Deploy-Slack-via-Microsoft-Installer
Some apps are like that - which makes them very bad candidates for software deployment / config management systems in general.
Slack has a special “bootstrap installer” which you can use. This essentially launches the “regular” slack installer when a user logs in. You should be able to use this installer with win_package: https://get.slack.help/hc/en-us/articles/212475728-Deploy-Slack-via-Microsoft-Installer