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
- hosts: xmpp | |
remote_user: ansible | |
become: yes | |
tasks: | |
- name: Add Prosody repository | |
apt_repository: | |
repo: "deb http://packages.prosody.im/debian jessie main" | |
state: present |
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
def test_unix_socket(host): | |
socket_path = "/tmp/mytestsocket" | |
unix_socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | |
unix_socket.bind(socket_path) | |
unix_socket.listen(1) | |
test_socket = host.socket("unix://%s" % socket_path) | |
assert test_socket.is_listening |
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
#!/bin/sh | |
echo 1 | |
echo 1 | |
echo 1 | |
echo 1 | |
echo 1 | |
echo 1 | |
echo 1 | |
echo 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
--- | |
- hosts: managed | |
remote_user: ansible | |
become: yes | |
tasks: | |
- template: src="hostinfo.j2" dest="/tmp/hostinfo" | |