ansible-playbook --private-key=keys/mykey.pem playbook.yml --tags='main,role-timezone-set-localtime' -vvvv
... some ansible output ...
TASK: [timezone | set /etc/localtime to UTC] **********************************
(redacted output)
failed: [remote_machine -> remote_machine] => {"cmd": "rsync --delay-updates -FF --compress --checksum --archive --rsh 'ssh -i keys/mykey.pem -S none -o StrictHostKeyChecking=no' --out-format='<<CHANGED>>%i %n%L' \"us...@1.2.3.4:/usr/share/zoneinfo/UTC\" \"/etc/localtime\"", "failed": true, "rc": 255}
msg: Warning: Identity file keys/mykey.pem not accessible: No such file or directory.
ssh: connect to host 1.2.3.4 port 22: Connection timed out
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(605) [Receiver=3.0.9]
- name: set /etc/localtime to {{timezone}}
synchronize:
src: "{{tzfile}}"
dest: /etc/localtime
mode: pull
times: yes
checksum: yes
private_key: ""
delegate_to: "{{inventory_hostname}}"
tags: role-timezone-set-localtime
--
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/2d473d23-d164-4fc1-9b3a-5d051e179836%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1ebada87-76b4-4a23-bdd9-5eb40a65405b%40googlegroups.com.