Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ops/ansible/inventories/legislation.demo.openfisca.org.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all:
hosts:
vps-60ea1664.openfisca.org:
ansible_user: root
vps-7d4f7fd9.vps.ovh.net:
ansible_user: openfisca

api_url: https://api.demo.openfisca.org/latest
app_port: 8101
Expand Down
4 changes: 2 additions & 2 deletions ops/ansible/inventories/legislation.fr.openfisca.org.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all:
hosts:
vps-60ea1664.openfisca.org:
ansible_user: root
vps-7d4f7fd9.vps.ovh.net:
ansible_user: openfisca

api_url: https://api.fr.openfisca.org/latest
app_port: 8100
Expand Down
21 changes: 19 additions & 2 deletions ops/ansible/roles/legislation_explorer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,28 @@
- acl # Provides "setfacl" command, used by Ansible to become another Unix user
- git
- nginx
- nodejs=10.19.0~dfsg-3ubuntu1
- npm=6.14.4+ds-1ubuntu2
state: present
update_cache: no

- name: Add NodeSource Node.js 10.x repo
ansible.builtin.apt_key:
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
state: present

- name: Add Node.js 10.x apt repository
ansible.builtin.apt_repository:
repo: deb https://deb.nodesource.com/node_10.x focal main
state: present
filename: nodesource

- name: Install Node.js 10
ansible.builtin.apt:
name:
- nodejs=10.24.1-deb-1nodesource1
state: present
force: yes
update_cache: yes

- name: Create the Unix group for Legislation Explorer
ansible.builtin.group:
name: "{{ unix_group_name }}"
Expand Down