initial commit of stackdriver logging role for GCP

This commit is contained in:
Eric Anderson 2020-04-24 15:54:06 -07:00
commit 42a304bdda
16 changed files with 282 additions and 0 deletions

View file

@ -0,0 +1,20 @@
---
- name: Stackdriver Logging | RedHat | Install the Python bindings for SELinux
yum: name=libselinux-python state=present
- name: Stackdriver Logging | RedHat | Add the Stackdriver repository
yum_repository:
name: google-cloud-logging
description: Google Cloud Logging Agent Repository
baseurl: "{{ stackdriver_log_yum_repo }}"
file: google-cloud-logging
enabled: yes
gpgcheck: yes
repo_gpgcheck: yes
gpgkey: "{{ stackdriver_log_yum_gpg_key }}"
- name: Stackdriver Logging | RedHat | Install Stackdriver agent
yum:
name: "{{ stackdriver_log_package_name }}"
state: present
notify: Stackdriver Logging | Restart Stackdriver Agent