mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-08 15:14:25 -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/main.yml
Normal file
20
roles/stackdriver_logging/tasks/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
# tasks file for stackdriver_logging
|
||||
|
||||
- name: Stackdriver Logging | OS Based Installation
|
||||
include_tasks: "{{ ansible_os_family|lower }}.yml"
|
||||
|
||||
- name: Stackdriver Logging | Install the Stackdriver defaults file
|
||||
template:
|
||||
src: default/google-fluentd
|
||||
dest: /etc/default/google-fluentd
|
||||
when: stackdriver_http_proxy is defined or
|
||||
stackdriver_https_proxy is defined
|
||||
|
||||
- name: Stackdriver Logging | Install the logging files
|
||||
template:
|
||||
src: source.conf
|
||||
dest: /etc/google-fluentd/config.d/{{ item.name }}.conf
|
||||
loop: "{{ stackdriver_log_files }}"
|
||||
when: stackdriver_log_files is defined
|
||||
notify: Stackdriver Logging | Restart Stackdriver Agent
|
Loading…
Add table
Add a link
Reference in a new issue