Skip to content

Instantly share code, notes, and snippets.

@richm
Created August 29, 2018 23:38
Show Gist options
  • Save richm/f76f723ebd1ab1ec8d34f5b225abed20 to your computer and use it in GitHub Desktop.
Save richm/f76f723ebd1ab1ec8d34f5b225abed20 to your computer and use it in GitHub Desktop.
---
- name: Get OpenShift specific information
hosts: masters[0]
sudo: yes
tasks:
- name: Get OpenShift information from the first master
import_role:
name: openshift_logging_rsyslog
tasks_from: main.yaml
when: rsyslog__enabled|bool and rsyslog__viaq|bool
- name: Deploy rsyslog configuration files
hosts: nodes
sudo: yes
roles:
- role: rsyslog
tags: [ 'role::rsyslog' ]
tasks:
- name: Run tasks/setup_certs.yaml instead of 'main'
import_role:
name: openshift_logging_rsyslog
tasks_from: setup_certs.yaml
when: (rsyslog__enabled|bool and rsyslog__viaq|bool)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment