Ansible managed Windows Hosts and GCP Buckets

30 views
Skip to first unread message

Craig Franz

unread,
Aug 11, 2021, 1:39:39 AM8/11/21
to Ansible Project
Hi All,
I have need to pull source files down from a non public GCP Cloud Buckets and I was wondering if there is any Ansible Modules for windows that support this I was looking into gsutil cmd that can be run from google cloud SDK Shell from a Remote Windows Host running in GCP but was wondering of there is a smarter way to get this done.

Below is an example if a Windows Playbook which works pulling the source files down from an internal webserver but the powers that be want to see if we can leverage GCP Buckets instead of below web server option

######## YAML file starts below ########
---

- name: Download the Nagios NCPA Agent installer
  win_get_url:
        dest: C:\ansible_repo\ncpa-2.3.1.exe
- name: Install Nagios NCPA from the exe
  win_package:
    path: 'C:\ansible_repo\ncpa-2.3.1.exe'
    creates_path: 'C:\Program Files (x86)\Nagios\NCPA\ncpa_listener.exe'
    creates_version: '2.3.1.0'
######## YAML file ends above ########
Reply all
Reply to author
Forward
0 new messages