O'Reilly logo
  • Pitch Arunsuwannakorn thinks this is interesting:

- name: copy nginx config file copy: src=files/nginx.conf dest=/etc/nginx/sites-available/default

From

Cover of Ansible: Up and Running

Note

Errata: I receive the following error message when running the yml file.

TASK [copy nginx config file] ********
fatal: [testserver]: FAILED! => {“changed”: false, “checksum”: “b54b8f65bbfd2a6bee44dae003172255a489224f”, “failed”: true, “msg”: “Destination directory /etc/nginx/sites-available does not exist”}