From 7455eb762165d336e81ca901885dc9b45fa7cced Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Wed, 19 Apr 2017 22:03:52 +0800 Subject: Create workspace by ansible playbook Change-Id: Ia79353e686240c5915e40b8202d3fdc289df2158 Signed-off-by: Yujun Zhang --- .../roles/qtip-bootstrap/templates/ansible.cfg.j2 | 30 ++++++++++++++++++++++ resources/roles/qtip-bootstrap/templates/hosts.j2 | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 resources/roles/qtip-bootstrap/templates/ansible.cfg.j2 create mode 100644 resources/roles/qtip-bootstrap/templates/hosts.j2 (limited to 'resources/roles/qtip-bootstrap/templates') diff --git a/resources/roles/qtip-bootstrap/templates/ansible.cfg.j2 b/resources/roles/qtip-bootstrap/templates/ansible.cfg.j2 new file mode 100644 index 00000000..e7d76dd0 --- /dev/null +++ b/resources/roles/qtip-bootstrap/templates/ansible.cfg.j2 @@ -0,0 +1,30 @@ +# config file for ansible -- https://ansible.com/ +# =============================================== + +# nearly all parameters can be overridden in ansible-playbook +# or with command line flags. ansible will read ANSIBLE_CONFIG, +# ansible.cfg in the current working directory, .ansible.cfg in +# the home directory or /etc/ansible/ansible.cfg, whichever it +# finds first + +[defaults] + +# some basic default values... + +inventory = ./hosts +library = {{ qtip_package }}/qtip/ansible_library/ + +# set plugin path directories here, separate with colons +action_plugins = {{ qtip_package }}/qtip/ansible_library/plugins/action +#cache_plugins = /usr/share/ansible/plugins/cache +#callback_plugins = /usr/share/ansible/plugins/callback +#connection_plugins = /usr/share/ansible/plugins/connection +#lookup_plugins = /usr/share/ansible/plugins/lookup +#inventory_plugins = /usr/share/ansible/plugins/inventory +#vars_plugins = /usr/share/ansible/plugins/vars +filter_plugins = {{ qtip_package }}/qtip/ansible_library/plugins/filter +#test_plugins = /usr/share/ansible/plugins/test +#terminal_plugins = /usr/share/ansible/plugins/terminal +#strategy_plugins = /usr/share/ansible/plugins/strategy + +callback_whitelist = profile_tasks diff --git a/resources/roles/qtip-bootstrap/templates/hosts.j2 b/resources/roles/qtip-bootstrap/templates/hosts.j2 new file mode 100644 index 00000000..c4b985b3 --- /dev/null +++ b/resources/roles/qtip-bootstrap/templates/hosts.j2 @@ -0,0 +1,3 @@ +localhost ansible_connection=local + +{{ installer_master }} -- cgit 1.2.3-korg