diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..c44f540 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,10 @@ +[defaults] +remote_tmp = /tmp/.ansible-${USER}/tmp +allow_world_readable_tmpfiles = true + +[ssh_connection] +pipelining = True + +[privilege_escalation] +become=True +become_user=tools.wikiloves diff --git a/deploy/main.yml b/deploy/main.yml index a73fec2..76ee771 100644 --- a/deploy/main.yml +++ b/deploy/main.yml @@ -1,11 +1,10 @@ --- - hosts: toolforge - become: yes - become_user: "tools.wikiloves" gather_facts: no vars: - base_path: /data/project/wikiloves + tool_name: wikiloves + base_path: "/data/project/{{ tool_name }}" checkout_path: "{{ base_path }}/wikiloves" toolforge_path: "{{ base_path }}/www/python" virtualenv_path: "{{ toolforge_path }}/venv"