Hi,
I know there are lots of examples on the internet but I can't make it work

ansible-playbook --private-key=/root/docker/aatool/ky.pem --extra-vars
admin_password=T3est@ chpass.yml
 [WARNING]: provided hosts list is empty, only localhost is available.
Note that the implicit localhost does not match 'all'

 [WARNING]: Could not match supplied host pattern, ignoring: ansible2


PLAY [User configuration]
************************************************************************************************************************************
skipping: no hosts matched

PLAY RECAP 
***************************************************************************************************************************************************


cat chpass.yml
- name: User configuration
  remote_user: root
  hosts: ansible2

  tasks:
    - name: Password change
      user:
        name: root
        state: present
        update_password: always
        password: "{{ admin_password }}"
        shell: /bin/bash

-------------------------------------------------------------------------------------------------------------------------------

What could be the problem ?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAOK917SiT2vwdH7sZ-1x%2B5HkH7kiJnHKT8QP6eTzPWaXbwZ7ZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to