Which of the following Ansible tasks copies the file example.txt to a manage system?
Which of the following Ansible tasks copies the file example.txt to a manage system?
The correct Ansible task that copies the file example.txt to a managed system is using the 'copy' module. The syntax for the 'copy' module is 'copy: src: example.txt dest: /tmp/example.txt'. This module is specifically designed for copying files to a managed system in Ansible, which ensures that the content is transferred correctly.
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html
B is correct