Randomly Expressed


Welcome to my blog “randomly expressed”. I created this website to publish helpful tips. It’s mainly technology driven, but I will blog about other topics. I am a Unix sysadmin that is always looking to learn new things. My goal is to be able to share knowledge that others may find useful. xkcd.com

Continue Reading »


Connect With US

Connect with us on the following social networking sites.

Most Popular Posts.

Add Some Content to This Area

You should either deactivate this panel on the Theme Settings page, or add some content via the Widgets page in your WordPress dashboard.

Ansible Windows DataDog agent install

By on December 2, 2018 in Technology with No Comments

The following is a Ansible Windows playbook that will download the latest version of the Data Dog agent and install it. It will also add data dog tags to the Window’s server. If you have lots of Windows servers to manage Ansible can help out with that.
Ansible Windows modules documentation

- name: DataDog agent Window's install
  hosts: corp-windows

    - name: Download lastest version of data dog agent
        url: https://s3.amazonaws.com/ddagent-windows-stable/datadog-agent-6-latest.amd64.msi
        dest: C:\Users\Administrator\Downloads\datadog-agent-6-latest.amd64.msi

    - name: install datadog agent
      win_command: 'msiexec /qn /i datadog-agent-6-latest.amd64.msi APIKEY="datadog API key" TAGS="regon:corp-lax,os:windows,alert:on,alert_level:low"'
        executable: cmd
        chdir: 'c:\Users\Administrator\Downloads\'
      register: agent_install

Facebook Comments

Tagged With: , ,

Post a Comment

Your email address will not be published. Required fields are marked *