Hello Experts,

As you can see struggling through basic tasks will appreciate any pointers
, using ansible version 2.7

 cat inventory.yml
fabric01:
  hosts:
    build_node:
      build_host: 192.168.115.101
      build_username: root
      build_password: 123Abdul123

root@ansibile-launch:~/ansible/tasks/add-compute# cat add-compute.yml
---
# Demo Adding Compute Node
- name: Adding Compute Node
  hosts: build_node
  connection: local
  gather_facts: no


  tasks:
  - name: return motd to registered var
    ansible_user= "{{build_username}}"
    ansible_ssh_pass= "{{build_password}}"
    command: 'cp /root/setup_data.yaml /root/setup_data.yaml.bak'

Appreciate if you can please int me in the right direction here ..

Regards,
AR

-- 
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/CAL7z%3Dgc2%3Dyvy4CLZavSsfjS0RkUk7Gxf1EToVRhsiDh8JHdU0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to