diff --git a/tasks/Windows.yml b/tasks/Windows.yml index 5a254a3..3e0fb2a 100644 --- a/tasks/Windows.yml +++ b/tasks/Windows.yml @@ -73,6 +73,7 @@ args: chdir: "{{ teamcity_agent_install_dir }}\\{{ item.teamcity_agent_name }}" loop: "{{ teamcity_agents }}" + become: true - name: Start agent service ansible.windows.win_shell: "{{ teamcity_agent_install_dir }}\\{{ item.teamcity_agent_name }}\\bin\\service.start.bat" diff --git a/templates/wrapper.conf.j2 b/templates/wrapper.conf.j2 index 821132b..ca6dc3a 100644 --- a/templates/wrapper.conf.j2 +++ b/templates/wrapper.conf.j2 @@ -8,7 +8,7 @@ ### ##################################################################### -wrapper.java.command=java +wrapper.java.command=java.exe wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp @@ -123,7 +123,7 @@ wrapper.ntservice.dependency.1= wrapper.ntservice.starttype=AUTO_START # Allow the service to interact with the desktop. -wrapper.ntservice.interactive=true +wrapper.ntservice.interactive= # User Account running the server wrapper.ntservice.account="{{ teamcity_build_username }}"