You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
hostname 'api.pushover.net:443' doesn't match either of '*.pushover.net', 'pushover.net'\", \"failed\": true, \"invocation
STEPS TO REPRODUCE
tasks/main.yml
---
# tasks file for ssh_config
- name: Notify that SSH Configuration is being changed
pushover:
msg: Mac SSH Configuration is being updated
app_token: "{{ pushoverAppToken }}"
user_key: "{{ pushoverUserKey }}"
- name: Create ~/.ssh if it doesn't exist
file:
path: "{{ ansible_env.HOME }}/.ssh"
state: directory
mode: "{{ ssh_directory_mode }}"
- name: Create ssh configuration file
template:
dest: "{{ ansible_env.HOME }}/.ssh/config"
src: config.j2
mode: "{{ ssh_config_mode }}"
templates/config.j2
{% for host in ssh_config_hosts %}
Host {{ ssh_config_hosts[host].host }}
{% if ssh_config_hosts[host].hostname is defined %}
Hostname {{ ssh_config_hosts[host].hostname }}
{% endif %}
{% if ssh_config_hosts[host].user is defined %}
User {{ ssh_config_hosts[host].user }}
{% endif %}
{% if ssh_config_hosts[host].port is defined %}
Port {{ ssh_config_hosts[host].port }}
{% endif %}
{% if ssh_config_hosts[host].proxy_command is defined %}
ProxyCommand {{ ssh_config_hosts[host].proxy_command }}
{% endif %}
{% if ssh_config_hosts[host].identity_file is defined %}
IdentityFile {{ ssh_config_hosts[host].identity_file }}
{% endif %}
{% if ssh_config_hosts[host].local_forward is defined %}
LocalForward {{ ssh_config_hosts[host].local_forward }}
{% endif %}
{% endfor %}
For it to send a pushover notification prior to running the configuration changes
ACTUAL RESULTS
The pushover notification failed with hostname 'api.pushover.net:443' doesn't match either of '*.pushover.net', 'pushover.net'\", \"failed\": true, \"invocation
___________________________________________________________
/ TASK [ssh_config : Notify that SSH Configuration is being \
\ changed] /
-----------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
task path: /Users/kkirsche/git/yaml/mac_setup/roles/ssh_config/tasks/main.yml:4
Using module file /usr/local/Cellar/ansible/2.2.0.0_1/libexec/lib/python2.7/site-packages/ansible/modules/extras/notification/pushover.py
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: kkirsche
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1481047350.24-71608570119340 `" && echo ansible-tmp-1481047350.24-71608570119340="` echo $HOME/.ansible/tmp/ansible-tmp-1481047350.24-71608570119340 `" ) && sleep 0'
<127.0.0.1> PUT /var/folders/8y/pj9zz4b12r37490xnlqb7gb13tt57z/T/tmpO7biWl TO /Users/kkirsche/.ansible/tmp/ansible-tmp-1481047350.24-71608570119340/pushover.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/kkirsche/.ansible/tmp/ansible-tmp-1481047350.24-71608570119340/ /Users/kkirsche/.ansible/tmp/ansible-tmp-1481047350.24-71608570119340/pushover.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /Users/kkirsche/.ansible/tmp/ansible-tmp-1481047350.24-71608570119340/pushover.py; rm -rf "/Users/kkirsche/.ansible/tmp/ansible-tmp-1481047350.24-71608570119340/" > /dev/null 2>&1 && sleep 0'
fatal: [127.0.0.1]: FAILED! => {
"changed": false,
"failed": true,
"invocation": {
"module_name": "pushover"
},
"module_stderr": "",
"module_stdout": "\n{\"msg\": \"hostname 'api.pushover.net:443' doesn't match either of '*.pushover.net', 'pushover.net'\", \"failed\": true, \"invocation\": {\"module_args\": {\"msg\": \"Mac SSH Configuration is being updated\", \"user_key\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"app_token\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"pri\": \"0\"}}}\n\n{\"msg\": \"Unable to send msg via pushover\", \"failed\": true, \"invocation\": {\"module_args\": {\"msg\": \"Mac SSH Configuration is being updated\", \"user_key\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"app_token\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \"pri\": \"0\"}}}\n",
"msg": "MODULE FAILURE"
}
...ignoring
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
COMPONENT NAME
[Pushover](http://docs.ansible.com/ansible/pushover_module.html
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
macOS 10.12.1 -> macOS 10.12.1 (localhost) — N/A
SUMMARY
Running the pushover module results in the error:
STEPS TO REPRODUCE
tasks/main.yml
templates/config.j2
defaults/main.yml
EXPECTED RESULTS
For it to send a pushover notification prior to running the configuration changes
ACTUAL RESULTS
The pushover notification failed with
hostname 'api.pushover.net:443' doesn't match either of '*.pushover.net', 'pushover.net'\", \"failed\": true, \"invocation
The text was updated successfully, but these errors were encountered: