Skip to content

Instantly share code, notes, and snippets.

@jcsmith
Created January 24, 2018 21:34
Ansible Block/Always again.
- block:
- name: Suppressing alerts while OS updates are being installed.
include_role:
name: start_maint_window
always:
- name: Installing OS updates.
include_role:
name: install_os_updates
PLAY [all] *************************************************************************************************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************************************************************************************
ok: [lrf-filelock000]
TASK [Notify Slack Channel that OS updates are being installed..] ******************************************************************************************************************************
ok: [lrf-filelock000 -> localhost]
TASK [Suppressing alerts while OS updates are being installed.] ********************************************************************************************************************************
TASK [start_maint_window : show access token body.] ********************************************************************************************************************************************
skipping: [lrf-filelock000]
TASK [start_maint_window : Getting access token.] **********************************************************************************************************************************************
fatal: [lrf-filelock000 -> localhost]: FAILED! => {"access_control_allow_headers": "X-AUTH-TOKEN, Content-Type, X-REQUESTED-WITH", "access_control_allow_methods": "POST, GET, OPTIONS, DELETE, PUT, PATCH", "access_control_max_age": "3600", "changed": false, "connection": "close", "content": "{\"title\":\"Incorrect username or password\",\"status\":403,\"detail\":\"Incorrect username or password\"}", "content_type": "application/json;charset=UTF-8", "date": "Wed, 24 Jan 2018 21:29:31 GMT", "json": {"detail": "Incorrect username or password", "status": 403, "title": "Incorrect username or password"}, "msg": "Status code was not [200]: HTTP Error 403: Forbidden", "redirected": false, "server": "nginx/1.11.5", "status": 403, "transfer_encoding": "chunked", "url": "https://sevone.wvu.edu/api/v2/authentication/signin?nmsLogin=false", "x_exception_class": "ServiceException"}
NO MORE HOSTS LEFT *****************************************************************************************************************************************************************************
to retry, use: --limit @/Users/jsmith39/src/wvu/ansible/playbooks/tower-install_updates.retry
PLAY RECAP *************************************************************************************************************************************************************************************
lrf-filelock000 : ok=2 changed=0 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment