mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-10-02 06:23:30 -07:00
initial commit of stackdriver logging role for GCP
This commit is contained in:
parent
282f8e3b82
commit
42a304bdda
16 changed files with 282 additions and 0 deletions
20
roles/stackdriver_logging/tasks/redhat.yml
Normal file
20
roles/stackdriver_logging/tasks/redhat.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue