diff --git a/examples/playbook/ansible.cfg b/examples/playbook/ansible.cfg new file mode 100644 index 00000000..0e3f829d --- /dev/null +++ b/examples/playbook/ansible.cfg @@ -0,0 +1,10 @@ +[defaults] +inventory = hosts +connection_plugins = ../../ansible_mitogen/connection +strategy_plugins = ../../ansible_mitogen/strategy +strategy = mitogen +connection = mitogen +retry_files_enabled = False + +[ssh_connection] +pipelining = True diff --git a/examples/playbook/host_vars/k3.yml b/examples/playbook/host_vars/k3.yml new file mode 100644 index 00000000..6a19b3c0 --- /dev/null +++ b/examples/playbook/host_vars/k3.yml @@ -0,0 +1,3 @@ +--- + +ansible_connection: econtext_conn diff --git a/examples/playbook/host_vars/localhost.yml b/examples/playbook/host_vars/localhost.yml new file mode 100644 index 00000000..9a28a414 --- /dev/null +++ b/examples/playbook/host_vars/localhost.yml @@ -0,0 +1,2 @@ +--- +# ansible_connection: econtext_conn diff --git a/examples/playbook/hosts b/examples/playbook/hosts new file mode 100644 index 00000000..d507a38a --- /dev/null +++ b/examples/playbook/hosts @@ -0,0 +1,2 @@ +#localhost +z diff --git a/examples/playbook/my.yml b/examples/playbook/my.yml new file mode 100644 index 00000000..a734af01 --- /dev/null +++ b/examples/playbook/my.yml @@ -0,0 +1,6 @@ +--- + + +- hosts: all + roles: + - myrole diff --git a/examples/playbook/roles/myrole/tasks/main.yml b/examples/playbook/roles/myrole/tasks/main.yml new file mode 100644 index 00000000..e8ea4738 --- /dev/null +++ b/examples/playbook/roles/myrole/tasks/main.yml @@ -0,0 +1,50 @@ +--- + +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname +- name: "My Role" + command: hostname