diff --git a/ops/ansible/inventories/legislation.demo.openfisca.org.yml b/ops/ansible/inventories/legislation.demo.openfisca.org.yml index 3d036da2..a547e25e 100644 --- a/ops/ansible/inventories/legislation.demo.openfisca.org.yml +++ b/ops/ansible/inventories/legislation.demo.openfisca.org.yml @@ -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 diff --git a/ops/ansible/inventories/legislation.fr.openfisca.org.yml b/ops/ansible/inventories/legislation.fr.openfisca.org.yml index 02f81f64..a5b4b1d4 100644 --- a/ops/ansible/inventories/legislation.fr.openfisca.org.yml +++ b/ops/ansible/inventories/legislation.fr.openfisca.org.yml @@ -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 diff --git a/ops/ansible/roles/legislation_explorer/tasks/main.yml b/ops/ansible/roles/legislation_explorer/tasks/main.yml index 633c1647..69f3bba7 100644 --- a/ops/ansible/roles/legislation_explorer/tasks/main.yml +++ b/ops/ansible/roles/legislation_explorer/tasks/main.yml @@ -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 }}"