ERR : msg: src (or content) and dest are required

1,799 views
Skip to first unread message

Kiran Patil

unread,
Aug 5, 2016, 9:12:55 AM8/5/16
to Ansible Project

Hello,

Can someone help on this ?


I am getting err


failed: [xxx01] => {"failed": true}
msg: src (or content) and dest are required

FATAL: all hosts have already failed -- aborting





    - name:  Set puppet.conf
      copy: src=/etc/ansible/playbooks/files/puppet-Prod.conf dest:/etc/puppetlabs/puppet/puppet.conf mode=0644 force
    - name: Run puppet agent in test mode
      command: puppet agent -t


I am using ansible to install puppet client here.

It fails while tryng to overwrite the file puppet.conf

Scott Sturdivant

unread,
Aug 5, 2016, 10:23:40 AM8/5/16
to Ansible Project
dest:/etc/...  --> dest=/etc/...

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a85cffd8-644c-4fe2-b714-233ad4c63978%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kiran Patil

unread,
Aug 5, 2016, 2:39:55 PM8/5/16
to Ansible Project
Thanks Scott , i figured it out too.


I wanted to update but the post was under moderator review so i could not.
Reply all
Reply to author
Forward
0 new messages