This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homegear log (note the RPC timeouts): | |
``` | |
11/04/16 01:12:06.337 RPC client: Info: Calling RPC method "system.multicall" on server 192.168.0.1. | |
11/04/16 01:12:06.342 RPC client: Info: Calling RPC method "system.multicall" on server 192.168.0.1. | |
11/04/16 01:12:15.364 RPC client: Info: Calling RPC method "system.multicall" on server 192.168.0.1. | |
11/04/16 01:12:15.369 RPC client: Info: Calling RPC method "system.multicall" on server 192.168.0.1. | |
11/04/16 01:12:17.603 RPC client: Info: Calling RPC method "system.multicall" on server 192.168.0.1. | |
11/04/16 01:12:17.607 RPC client: Info: Calling RPC method "system.multicall" on server 192.168.0.1. | |
11/04/16 01:12:21.858 RPC client: Info: Calling RPC method "system.multicall" on server 192.168.0.1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bootstrap: | |
mkdir -p vars/bar | |
touch vars/bar/all.yml | |
./hosts content: | |
[test] | |
localhost | |
[all:vars] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Generate a KVM enabled VMWare VCSA VM under libvirt | |
hosts: 127.0.0.1 | |
connection: local | |
vars: | |
- reqpkgs_apt: | |
- bsdtar | |
- libguestfs-tools | |
- qemu-utils | |
- virtinst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Generate log file name | |
hosts: all | |
connection: local | |
tasks: | |
- shell: mktemp | |
register: mktemp | |
always_run: yes | |
run_once: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Sanity check | |
hosts: all | |
connection: local | |
tasks: | |
- fail: msg="You need at least two hosts to run this play against, but more is better" | |
when: play_hosts|length < 2 | |
run_once: yes | |
- name: Generate two tempfiles with run_once, and make a list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Reboot a host and wait for it to return | |
hosts: somehost | |
remote_user: root | |
tasks: | |
# Send the reboot command | |
- shell: shutdown -r now | |
# This pause is mandatory, otherwise the existing control connection gets reused! | |
- pause: seconds=30 |