From 0f97d0ae9b897cd7c97a33944e7d253aed826650 Mon Sep 17 00:00:00 2001 From: Jean-Frederic Date: Mon, 30 May 2022 20:35:43 +0200 Subject: [PATCH] 'Modernize' the Ansible setup Add ansible.cfg file, based on our experience with integraality. --- ansible.cfg | 10 ++++++++++ deploy/main.yml | 5 ++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 ansible.cfg 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"