Skip to content

Instantly share code, notes, and snippets.

@tbielawa
Last active February 7, 2017 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbielawa/40c620bc80c6e0926ddc6660292b0a97 to your computer and use it in GitHub Desktop.
Save tbielawa/40c620bc80c6e0926ddc6660292b0a97 to your computer and use it in GitHub Desktop.
[OSEv3:children]
masters
[OSEv3:vars]
ansible_ssh_user=root
deployment_type=openshift-enterprise
openshift_release=v3.4
openshift_uninstall_images=False
rhsub_pool="Employee SKU*"
rhsub_user="{{ lookup('env','RHSUB_USER') }}"
rhsub_pass="{{ lookup('env','RHSUB_PASS') }}"
[masters]
n01.example.com
n02.example.com
# NOTE: I REPLACED MY ACTUAL NAME/PASS WITH "<USERNAME>" and "<PASSWORD>" BELOW:
PLAY [Subscribe hosts, update repos and update OS packages] ********************
TASK [setup] *******************************************************************
ok: [n01.example.com]
ok: [n02.example.com]
TASK [rhel_subscribe : set_fact] ***********************************************
ok: [n01.example.com] => {
"ansible_facts": {
"rhel_subscription_pass": "<PASSWORD>",
"rhel_subscription_pool": "Employee SKU*",
"rhel_subscription_server": "",
"rhel_subscription_user": "<USERNAME>"
},
"changed": false
}
ok: [n02.example.com] => {
"ansible_facts": {
"rhel_subscription_pass": "<PASSWORD>",
"rhel_subscription_pool": "Employee SKU*",
"rhel_subscription_server": "",
"rhel_subscription_user": "<USERNAME>"
},
"changed": false
}
TASK [rhel_subscribe : fail] ***************************************************
skipping: [n01.example.com] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
skipping: [n02.example.com] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
Using /home/tbielawa/rhat/os/openshift-ansible/ansible.cfg as config file
PLAY [Create initial host groups for localhost] ********************************
TASK [include_vars] ************************************************************
ok: [localhost] => {
"ansible_facts": {
"g_all_hosts": "{{ g_master_hosts | union(g_node_hosts) | union(g_etcd_hosts) | union(g_lb_hosts) | union(g_nfs_hosts) | union(g_new_node_hosts)| union(g_new_master_hosts) | default([]) }}",
"g_etcd_hosts": "{{ groups.etcd | default([]) }}",
"g_lb_hosts": "{{ groups.lb | default([]) }}",
"g_master_hosts": "{{ groups.masters | default([]) }}",
"g_new_master_hosts": "{{ groups.new_masters | default([]) }}",
"g_new_node_hosts": "{{ groups.new_nodes | default([]) }}",
"g_nfs_hosts": "{{ groups.nfs | default([]) }}",
"g_node_hosts": "{{ groups.nodes | default([]) }}"
},
"changed": false
}
TASK [Evaluate group l_oo_all_hosts] *******************************************
ok: [localhost] => (item=n01.example.com) => {
"add_host": {
"groups": [
"l_oo_all_hosts"
],
"host_name": "n01.example.com",
"host_vars": {}
},
"changed": false,
"item": "n01.example.com"
}
ok: [localhost] => (item=n02.example.com) => {
"add_host": {
"groups": [
"l_oo_all_hosts"
],
"host_name": "n02.example.com",
"host_vars": {}
},
"changed": false,
"item": "n02.example.com"
}
PLAY [Create initial host groups for all hosts] ********************************
TASK [include_vars] ************************************************************
ok: [n01.example.com] => {
"ansible_facts": {
"g_all_hosts": "{{ g_master_hosts | union(g_node_hosts) | union(g_etcd_hosts) | union(g_lb_hosts) | union(g_nfs_hosts) | union(g_new_node_hosts)| union(g_new_master_hosts) | default([]) }}",
"g_etcd_hosts": "{{ groups.etcd | default([]) }}",
"g_lb_hosts": "{{ groups.lb | default([]) }}",
"g_master_hosts": "{{ groups.masters | default([]) }}",
"g_new_master_hosts": "{{ groups.new_masters | default([]) }}",
"g_new_node_hosts": "{{ groups.new_nodes | default([]) }}",
"g_nfs_hosts": "{{ groups.nfs | default([]) }}",
"g_node_hosts": "{{ groups.nodes | default([]) }}"
},
"changed": false
}
ok: [n02.example.com] => {
"ansible_facts": {
"g_all_hosts": "{{ g_master_hosts | union(g_node_hosts) | union(g_etcd_hosts) | union(g_lb_hosts) | union(g_nfs_hosts) | union(g_new_node_hosts)| union(g_new_master_hosts) | default([]) }}",
"g_etcd_hosts": "{{ groups.etcd | default([]) }}",
"g_lb_hosts": "{{ groups.lb | default([]) }}",
"g_master_hosts": "{{ groups.masters | default([]) }}",
"g_new_master_hosts": "{{ groups.new_masters | default([]) }}",
"g_new_node_hosts": "{{ groups.new_nodes | default([]) }}",
"g_nfs_hosts": "{{ groups.nfs | default([]) }}",
"g_node_hosts": "{{ groups.nodes | default([]) }}"
},
"changed": false
}
TASK [set_fact] ****************************************************************
ok: [n01.example.com] => {
"ansible_facts": {
"openshift_deployment_type": "openshift-enterprise"
},
"changed": false
}
ok: [n02.example.com] => {
"ansible_facts": {
"openshift_deployment_type": "openshift-enterprise"
},
"changed": false
}
PLAY [Populate config host groups] *********************************************
TASK [fail] ********************************************************************
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [fail] ********************************************************************
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [fail] ********************************************************************
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [fail] ********************************************************************
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [fail] ********************************************************************
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [fail] ********************************************************************
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [Evaluate oo_all_hosts] ***************************************************
ok: [localhost] => (item=n01.example.com) => {
"add_host": {
"groups": [
"oo_all_hosts"
],
"host_name": "n01.example.com",
"host_vars": {}
},
"changed": false,
"item": "n01.example.com"
}
ok: [localhost] => (item=n02.example.com) => {
"add_host": {
"groups": [
"oo_all_hosts"
],
"host_name": "n02.example.com",
"host_vars": {}
},
"changed": false,
"item": "n02.example.com"
}
TASK [Evaluate oo_masters] *****************************************************
ok: [localhost] => (item=n01.example.com) => {
"add_host": {
"groups": [
"oo_masters"
],
"host_name": "n01.example.com",
"host_vars": {}
},
"changed": false,
"item": "n01.example.com"
}
ok: [localhost] => (item=n02.example.com) => {
"add_host": {
"groups": [
"oo_masters"
],
"host_name": "n02.example.com",
"host_vars": {}
},
"changed": false,
"item": "n02.example.com"
}
TASK [Evaluate oo_etcd_to_config] **********************************************
TASK [Evaluate oo_masters_to_config] *******************************************
ok: [localhost] => (item=n01.example.com) => {
"add_host": {
"groups": [
"oo_masters_to_config"
],
"host_name": "n01.example.com",
"host_vars": {}
},
"changed": false,
"item": "n01.example.com"
}
ok: [localhost] => (item=n02.example.com) => {
"add_host": {
"groups": [
"oo_masters_to_config"
],
"host_name": "n02.example.com",
"host_vars": {}
},
"changed": false,
"item": "n02.example.com"
}
TASK [Evaluate oo_nodes_to_config] *********************************************
TASK [Add master to oo_nodes_to_config] ****************************************
skipping: [localhost] => (item=n01.example.com) => {
"changed": false,
"item": "n01.example.com",
"skip_reason": "Conditional check failed",
"skipped": true
}
skipping: [localhost] => (item=n02.example.com) => {
"changed": false,
"item": "n02.example.com",
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [Evaluate oo_first_etcd] **************************************************
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
TASK [Evaluate oo_first_master] ************************************************
ok: [localhost] => {
"add_host": {
"groups": [
"oo_first_master"
],
"host_name": "n01.example.com",
"host_vars": {}
},
"changed": false
}
TASK [Evaluate oo_lb_to_config] ************************************************
TASK [Evaluate oo_nfs_to_config] ***********************************************
PLAY [Ensure that all non-node hosts are accessible] ***************************
TASK [setup] *******************************************************************
ok: [n02.example.com]
ok: [n01.example.com]
PLAY [Initialize host facts] ***************************************************
TASK [setup] *******************************************************************
ok: [n02.example.com]
ok: [n01.example.com]
TASK [openshift_facts : Detecting Operating System] ****************************
ok: [n01.example.com] => {
"changed": false,
"stat": {
"exists": false
}
}
ok: [n02.example.com] => {
"changed": false,
"stat": {
"exists": false
}
}
TASK [openshift_facts : set_fact] **********************************************
ok: [n02.example.com] => {
"ansible_facts": {
"l_is_atomic": false
},
"changed": false
}
ok: [n01.example.com] => {
"ansible_facts": {
"l_is_atomic": false
},
"changed": false
}
TASK [openshift_facts : set_fact] **********************************************
ok: [n01.example.com] => {
"ansible_facts": {
"l_is_containerized": false
},
"changed": false
}
ok: [n02.example.com] => {
"ansible_facts": {
"l_is_containerized": false
},
"changed": false
}
TASK [openshift_facts : Ensure various deps are installed] *********************
failed: [n01.example.com] (item=[u'iproute', u'python-dbus', u'python-six', u'PyYAML', u'yum-utils']) => {
"changed": false,
"failed": true,
"item": [
"iproute",
"python-dbus",
"python-six",
"PyYAML",
"yum-utils"
],
"rc": 126,
"results": [
"iproute-3.10.0-54.el7.x86_64 providing iproute is already installed",
"dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed",
"python-six-1.9.0-2.el7.noarch providing python-six is already installed",
"No package matching 'PyYAML' found available, installed or updated"
]
}
MSG:
No package matching 'PyYAML' found available, installed or updated
failed: [n02.example.com] (item=[u'iproute', u'python-dbus', u'python-six', u'PyYAML', u'yum-utils']) => {
"changed": false,
"failed": true,
"item": [
"iproute",
"python-dbus",
"python-six",
"PyYAML",
"yum-utils"
],
"rc": 126,
"results": [
"iproute-3.10.0-54.el7.x86_64 providing iproute is already installed",
"dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed",
"python-six-1.9.0-2.el7.noarch providing python-six is already installed",
"No package matching 'PyYAML' found available, installed or updated"
]
}
MSG:
No package matching 'PyYAML' found available, installed or updated
PLAY RECAP *********************************************************************
localhost : ok=6 changed=0 unreachable=0 failed=0
n01.example.com : ok=7 changed=0 unreachable=0 failed=1
n02.example.com : ok=7 changed=0 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment