managed node requirements - sergeyzolotukhin/learn-java-gradle GitHub Wiki
SSH
SFTP or SCP
Python 2 or 3
The variable is ansible_ssh_password, not ansible_ssh_pass. The variables with _ssh in the name are legacy names, so you can juse use ansible_user and ansible_password instead.
If I have an inventory like this:
[server] example ansible_host=192.168.122.148 ansible_user=root ansible_password=secret
Then I can run this command successfully:
$ ansible all -i hosts -m ping example | SUCCESS => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "changed": false, "ping": "pong" }
If the above ad-hoc command works correctly, then a playbook should work correctly as well. E.g., still assuming the above inventory, I can use the following playbook:
- hosts: all
gather_facts: false
tasks:
- ping: And I can call it like this:
$ ansible-playbook playbook.yml -i hosts PLAY [all] ***************************************************************************
TASK [ping] ************************************************************************** ok: [example]
PLAY RECAP *************************************************************************** example : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
...and it all works just fine.