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

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

dest:/etc/… → dest=/etc/…

Thanks Scott , i figured it out too.

I wanted to update but the post was under moderator review so i could not.