Skip to content

Commit

Permalink
Update win_sql_install.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bennojoy authored Aug 29, 2017
1 parent 9698bee commit d3b1bfe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions win_sql_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,17 @@
args:
chdir: c:\sql

- name: Add or update registry for ip port
win_regedit:
path: 'HKLM:\Software\Microsoft\Microsoft SQL Server\MSSQL12.{{ sql_instance_name }}\MSSQLServer\SuperSocketNetLib\Tcp\IPAll'
name: TcpPort
data: 1433
register: win_reg

- name: Restart a service
win_service:
name: 'MSSQL${{ sql_instance_name }}'
force_dependent_services: yes
state: restarted
when: win_reg.changed

0 comments on commit d3b1bfe

Please sign in to comment.