ansible-collections / community.aws

Ansible Collection for Community AWS
GNU General Public License v3.0
189 stars 398 forks source link

aws_ssm - Fix ssm_timeout wording in documentation #662

Open kindlehl opened 3 years ago

kindlehl commented 3 years ago

Summary

The docs make the timeout seem as if the plugin checks the time it takes to establish a connection, but the timeout setting on this plugin also affects the duration of the command. So if you were to try to run this:

- name: sleep
  command: sleep 61
  vars:
    ansible_aws_ssm_timeout: 60

You would get a timeout error.

Issue Type

Documentation Report

Component Name

aws_ssm.py

Ansible Version

$ ansible --version
2.10.10

Collection Versions

$ ansible-galaxy collection list
...
community.aws                 1.5.0

Configuration

$ ansible-config dump --only-changed

OS / Environment

CentOS 7

Additional Information

This wording change would help new users of the plugin understand timeout errors. It is not always an error connecting to the target servers, the command could just be hanging.

Code of Conduct

ansibullbot commented 3 years ago

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 3 years ago

cc @116davinder @jillr @markuman @mikedlr @nathanwebsterdotme @ozbillwang @s-hertel @tremble @wimnat click here for bot help

116davinder commented 3 years ago

@kindlehl, I am unable to reproduce with the new version of ansible.

dpal@DESKTOP-CR9Q1AE:~$ ansible --version
ansible [core 2.11.3]
  config file = None
  configured module search path = ['/home/dpal/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
  ansible collection location = /home/dpal/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.8.10 (default, Jun  2 2021, 10:49:15) [GCC 9.4.0]
  jinja version = 2.10.1
  libyaml = True
dpal@DESKTOP-CR9Q1AE:~$ cat test.yaml
---
- hosts: localhost
  become: false
  gather_facts: false
  tasks:
    - name: sleep
      command: sleep 5
      vars:
        ansible_aws_ssm_timeout: 4
dpal@DESKTOP-CR9Q1AE:~$ ansible-playbook test.yaml  -v
PLAY [localhost] *******************************************************************************************************

TASK [sleep] ***********************************************************************************************************
changed: [localhost] => {"changed": true, "cmd": ["sleep", "5"], "delta": "0:00:05.001127", "end": "2021-09-05 00:45:32.316391", "rc": 0, "start": "2021-09-05 00:45:27.315264", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

PLAY RECAP *************************************************************************************************************
localhost                  : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

if possible, can provide more context on what host you are running why would you even set ansible_aws_ssm_timeout for command module and -vvvv output of your playbook so at least I can understand what is going on?