ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Ansible for MS SQL Server on Windows

    IT Discussion
    ansible devops windows server ms sql server xp
    5
    9
    10.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mlnewsM
      mlnews
      last edited by scottalanmiller

      We are automating our Windows infrastructure using Ansible.

      We created Ansible role and playbook which will install and configure MS SQL Express on Windows Server 2012 R2, but I was not able to develop a playbook which creates a new database on my db server (MS SQL Server 2014.)

      The Ansible MS SQL Server module doesn't work for me.

      My question is " how do i make connection btw my Ansible controller machines and my MS SQL Server db server which was installed on remote windows hosts?

      I installed python 2.7 and Pymssql on my ansible controller machine.

      1 Reply Last reply Reply Quote 3
      • black3dynamiteB
        black3dynamite
        last edited by

        And here I was hoping the title says "Ansible for Linux MS SQL Server".

        scottalanmillerS 1 Reply Last reply Reply Quote 3
        • scottalanmillerS
          scottalanmiller @black3dynamite
          last edited by

          @black3dynamite said in Ansible for Windows MS SQL Server:

          And here I was hoping the title says "Ansible for Linux MS SQL Server".

          No such luck, that would likely make it easier.

          Well, not really. Who knows.

          black3dynamiteB 1 Reply Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite @scottalanmiller
            last edited by black3dynamite

            @scottalanmiller said in Ansible for MS SQL Server on Windows:

            @black3dynamite said in Ansible for Windows MS SQL Server:

            And here I was hoping the title says "Ansible for Linux MS SQL Server".

            No such luck, that would likely make it easier.

            Well, not really. Who knows.

            Well it can be easier once PowerShell is stable enough and the modules like SQL Server modules was available.

            1 Reply Last reply Reply Quote 0
            • ObsolesceO
              Obsolesce
              last edited by

              I found a nice article on DigitalOcean setting up MySQL and SaltStack state files... is that worth linking? I know both are different, but I'm guessing it's the same concept. I'm familiar with Salt, but not Ansible.. though they seem very similar.

              Well here it is anyways, just in case.

              scottalanmillerS 1 Reply Last reply Reply Quote 1
              • scottalanmillerS
                scottalanmiller @Obsolesce
                last edited by

                @tim_g said in Ansible for MS SQL Server on Windows:

                I found a nice article on DigitalOcean setting up MySQL and SaltStack state files... is that worth linking? I know both are different, but I'm guessing it's the same concept. I'm familiar with Salt, but not Ansible.. though they seem very similar.

                Well here it is anyways, just in case.

                Can't hurt.

                1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  I think that the issue might be that Ansible's modules don't work. But maybe knowing that Salt's do will be useful.

                  ObsolesceO 1 Reply Last reply Reply Quote 0
                  • ObsolesceO
                    Obsolesce @scottalanmiller
                    last edited by

                    @scottalanmiller said in Ansible for MS SQL Server on Windows:

                    I think that the issue might be that Ansible's modules don't work. But maybe knowing that Salt's do will be useful.

                    Yeah, I seen that Salt has MS SQL specific modules.

                    1 Reply Last reply Reply Quote 1
                    • stacksofplatesS
                      stacksofplates
                      last edited by

                      It's kind of hard to help without seeing the playbook/role you created.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post