Skip to content

Commit

Permalink
'Modernize' the Ansible setup
Browse files Browse the repository at this point in the history
Add ansible.cfg file, based on our experience with integraality.
  • Loading branch information
JeanFred committed May 30, 2022
1 parent 7ff1a48 commit 0f97d0a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions ansible.cfg
Original file line number Diff line number Diff line change
@@ -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
5 changes: 2 additions & 3 deletions deploy/main.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 0f97d0a

Please sign in to comment.