From 7fb0fa387269ea02e743c777e681b3d42766cee2 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 17 Feb 2018 14:49:40 +0545 Subject: [PATCH] examples: rename playbooks for clarity. --- docs/ansible.rst | 10 ++++----- .../cell_division.png} | Bin .../costapp.png} | Bin .../run_hostname_100_times.png} | Bin .../{local.yml => connection_local.yml} | 3 +-- .../tasks/main.yml | 20 ------------------ .../tasks/main.yml | 0 .../{my.yml => run_hostname_100_times.yml} | 3 +-- 8 files changed, 7 insertions(+), 29 deletions(-) rename docs/images/{ans_cell_division.png => ansible/cell_division.png} (100%) rename docs/images/{costapp_traces.png => ansible/costapp.png} (100%) rename docs/images/{my_yml_traces.png => ansible/run_hostname_100_times.png} (100%) rename examples/playbook/{local.yml => connection_local.yml} (70%) rename examples/playbook/roles/{local => connection_local}/tasks/main.yml (83%) rename examples/playbook/roles/{myrole => run_hostname_100_times}/tasks/main.yml (100%) rename examples/playbook/{my.yml => run_hostname_100_times.yml} (64%) diff --git a/docs/ansible.rst b/docs/ansible.rst index a9081845..640334e6 100644 --- a/docs/ansible.rst +++ b/docs/ansible.rst @@ -2,7 +2,7 @@ Ansible Extension ================= -.. image:: images/ans_cell_division.png +.. image:: images/ansible/cell_division.png :align: right An experimental extension to `Ansible`_ is included that implements host @@ -106,10 +106,10 @@ Local VM connection ~~~~~~~~~~~~~~~~~~~ This demonstrates Mitogen vs. connection pipelining to a local VM, executing -the 100 simple repeated steps of ``my.yml`` from the examples directory. -Mitogen uses 43x less bandwidth and 4.25x less time. +the 100 simple repeated steps of ``run_hostname_100_times.yml`` from the +examples directory. Mitogen uses 43x less bandwidth and 4.25x less time. -.. image:: images/my_yml_traces.png +.. image:: images/ansible/run_hostname_100_times.png Kathmandu to Paris @@ -128,7 +128,7 @@ The initial extension lays groundwork for exciting structural changes to the execution model: a future version will tackle latency head-on by delegating some control flow to the target host. -.. image:: images/costapp_traces.png +.. image:: images/ansible/costapp.png SSH Variables diff --git a/docs/images/ans_cell_division.png b/docs/images/ansible/cell_division.png similarity index 100% rename from docs/images/ans_cell_division.png rename to docs/images/ansible/cell_division.png diff --git a/docs/images/costapp_traces.png b/docs/images/ansible/costapp.png similarity index 100% rename from docs/images/costapp_traces.png rename to docs/images/ansible/costapp.png diff --git a/docs/images/my_yml_traces.png b/docs/images/ansible/run_hostname_100_times.png similarity index 100% rename from docs/images/my_yml_traces.png rename to docs/images/ansible/run_hostname_100_times.png diff --git a/examples/playbook/local.yml b/examples/playbook/connection_local.yml similarity index 70% rename from examples/playbook/local.yml rename to examples/playbook/connection_local.yml index 7da9cab0..4bea032b 100644 --- a/examples/playbook/local.yml +++ b/examples/playbook/connection_local.yml @@ -1,7 +1,6 @@ --- - - hosts: all gather_facts: false roles: - - local + - connection_local diff --git a/examples/playbook/roles/local/tasks/main.yml b/examples/playbook/roles/connection_local/tasks/main.yml similarity index 83% rename from examples/playbook/roles/local/tasks/main.yml rename to examples/playbook/roles/connection_local/tasks/main.yml index 3b4a6027..d9a977f2 100644 --- a/examples/playbook/roles/local/tasks/main.yml +++ b/examples/playbook/roles/connection_local/tasks/main.yml @@ -99,23 +99,3 @@ - name: "My Role" connection: local command: hostname - -- name: "My Role" - connection: local - command: hostname - -- name: "My Role" - connection: local - command: hostname - -- name: "My Role" - connection: local - command: hostname - -- name: "My Role" - connection: local - command: hostname - -- name: "My Role" - connection: local - command: hostname diff --git a/examples/playbook/roles/myrole/tasks/main.yml b/examples/playbook/roles/run_hostname_100_times/tasks/main.yml similarity index 100% rename from examples/playbook/roles/myrole/tasks/main.yml rename to examples/playbook/roles/run_hostname_100_times/tasks/main.yml diff --git a/examples/playbook/my.yml b/examples/playbook/run_hostname_100_times.yml similarity index 64% rename from examples/playbook/my.yml rename to examples/playbook/run_hostname_100_times.yml index 201cc028..f02bd678 100644 --- a/examples/playbook/my.yml +++ b/examples/playbook/run_hostname_100_times.yml @@ -1,7 +1,6 @@ --- - - hosts: all gather_facts: false roles: - - myrole + - run_hostname_100_times