Skip to content

Instantly share code, notes, and snippets.

View tbielawa's full-sized avatar
💭
bitmath!

Tim Bielawa tbielawa

💭
bitmath!
View GitHub Profile
PLAY [all] *********************************************************************
TASK [Check cert expirys on host] **********************************************
ok: [192.168.124.11] => {
"changed": false,
"check_results": {
"certs": [
{
"cert_cn": "192.168.124.11",
"days_remaining": 717,
PLAY [all] *********************************************************************
TASK [Check cert expirys on host] **********************************************
ok: [192.168.124.110] => {
"changed": false,
"check_results": {
"certs": [
{
"cert_cn": "192.168.124.110",
"days_remaining": 717,
- hosts: all
# oo_first_master
become: yes
gather_facts: no
tasks:
- name: Check cert expirys on host
openshift_cert_expiry:
openshift_config_base: "{{ openshift.common.config_base }}"
Play 26/30 (Create Hosted Resources)
............................................................................................................................................................................................................................................
Play 27/30 (Configure CA certificate for secure registry)
.........
192.168.124.148 : ok=487 changed=21 unreachable=0 failed=0
localhost : ok=15 changed=9 unreachable=0 failed=0
Installation Complete: Note: Play count is an estimate and some were skipped because your install does not require them
----------------------------------
Beginning play 1 of 5
TASK [Verify Ansible version is greater than or equal to 2.1.0.0] **************
----------------------------------
Beginning play 2 of 5
TASK [include_vars] ************************************************************
@tbielawa
tbielawa / all-the-tasks.log
Created September 20, 2016 15:01
ansible-playbook --list-tasks -i inventory/byo/hosts.tbielawa.multi ./playbooks/byo/config.yml >/tmp/multi-master--list-tasks
statically included: /home/tbielawa/rhat/os/openshift-ansible/roles/docker/tasks/udev_workaround.yml
statically included: /home/tbielawa/rhat/os/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml
statically included: /home/tbielawa/rhat/os/openshift-ansible/roles/openshift_version/tasks/set_version_containerized.yml
statically included: /home/tbielawa/rhat/os/openshift-ansible/roles/docker/tasks/udev_workaround.yml
statically included: /home/tbielawa/rhat/os/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml
statically included: /home/tbielawa/rhat/os/openshift-ansible/roles/openshift_version/tasks/set_version_containerized.yml
statically included: /home/tbielawa/rhat/os/openshift-ansible/roles/docker/tasks/udev_workaround.yml
statically included: /home/tbielawa/rhat/os/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml
statically included: /home/tbielawa/rhat/os/openshift-ansible/roles/openshift_version/tasks/set_version_containerized.yml
statically included
@tbielawa
tbielawa / default-log.txt
Created September 13, 2016 19:37
openshift/openshift-ansible/issues#2445 - Filtering installer output
PLAY [localhost] ***************************************************************
TASK [Verify Ansible version is greater than or equal to 2.1.0.0] **************
skipping: [localhost]
PLAY [localhost] ***************************************************************
TASK [include_vars] ************************************************************
ok: [localhost]
ansible_callback_facts_yaml: /home/tbielawa/.config/openshift/.ansible/callback_facts.yaml
ansible_config: /usr/share/atomic-openshift-utils/ansible.cfg
ansible_inventory_path: /home/tbielawa/.config/openshift/hosts
ansible_log_path: /tmp/ansible.log
deployment:
ansible_ssh_user: root
hosts:
- connect_to: m01.example.com
hostname: m01.example.com
openshift_scheduleable: false
@tbielawa
tbielawa / fix_ansible_yaml_dump.diff
Created September 7, 2016 15:34
AnsibleDumper subclasses yaml.SafeDumper
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index 053de77..7b241e2 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -16,6 +16,7 @@ import pkg_resources
import re
import json
import yaml
+from ansible.parsing.yaml.dumper import AnsibleDumper
from ansible.utils.unicode import to_unicode
From 3f5e97c3a2d1321cae918ec18ef5645bef4744cc Mon Sep 17 00:00:00 2001
From: Tim Bielawa <tbielawa@redhat.com>
Date: Tue, 6 Sep 2016 16:41:08 -0700
Subject: [PATCH] Fix for objects which can't be converted by the YAML parser
* Ansible parsed vars into special Ansible helper objects
* Manually cast each var into a normal string as applicable
---
filter_plugins/oo_filters.py | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)