Skip to content
Extraits de code Groupes Projets
Valider db3814c5 rédigé par Théo - Le Filament's avatar Théo - Le Filament
Parcourir les fichiers

fix(handler): update name and conditions

parent b9e141e3
Branches
Étiquettes
Aucune requête de fusion associée trouvée
...@@ -10,25 +10,25 @@ ...@@ -10,25 +10,25 @@
name: lefilament/odoo:{{ instance_odoo_version }}_ml name: lefilament/odoo:{{ instance_odoo_version }}_ml
source: pull source: pull
force_source: true force_source: true
when: not ansible_check_mode and odoo_multilingual is defined and odoo_multilingual when: not ansible_check_mode and instance.value.odoo_multilingual is defined and instance.value.odoo_multilingual
- name: pull odoo Python3.6 image - name: pull odoo Python3.6 image
docker_image: docker_image:
name: lefilament/odoo:{{ instance_odoo_version }}_py3.6 name: lefilament/odoo:{{ instance_odoo_version }}_py3.6
source: pull source: pull
force_source: true force_source: true
when: not ansible_check_mode and odoo_python36 is defined and odoo_python36 when: not ansible_check_mode and instance.value.odoo_python36 is defined and instance.value.odoo_python36
- name: pull odoo image - name: pull odoo image
docker_image: docker_image:
name: lefilament/odoo:{{ instance_odoo_version }} name: lefilament/odoo:{{ instance_odoo_version }}
source: pull source: pull
force_source: true force_source: true
when: not ansible_check_mode and (odoo_multilingual is not defined or not odoo_multilingual) and (odoo_python36 is not defined or not odoo_python36) when: not ansible_check_mode and (instance.value.odoo_multilingual is not defined or not instance.value.odoo_multilingual) and (instance.value.odoo_python36 is not defined or not instance.value.odoo_python36)
- name: build odoo image - name: build odoo image
docker_compose: docker_compose:
project_src: /home/docker/{{ instance_name }}/ project_src: /home/docker/{{ instance.key }}/
build: true build: true
nocache: true nocache: true
recreate: always recreate: always
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
- name: start odoo container - name: start odoo container
docker_compose: docker_compose:
project_src: /home/docker/{{ instance_name }}/ project_src: /home/docker/{{ instance.key }}/
remove_orphans: true remove_orphans: true
when: not ansible_check_mode when: not ansible_check_mode
...@@ -54,6 +54,6 @@ ...@@ -54,6 +54,6 @@
- name: remove ssh private keys - name: remove ssh private keys
file: file:
path: "/home/docker/{{ instance_name }}/odoo/id_ed25519.sources" path: "/home/docker/{{ instance.key }}/odoo/id_ed25519.sources"
state: absent state: absent
when: not ansible_check_mode and inventory_hostname not in groups['maintenance_contract'] when: not ansible_check_mode and inventory_hostname not in groups['maintenance_contract']
...@@ -246,7 +246,7 @@ ...@@ -246,7 +246,7 @@
# Flush handlers. # Flush handlers.
- name: set facts - name: set facts
ansible.builtin.set_fact: ansible.builtin.set_fact:
instance_name: "{{ item.key }}" instance: "{{ {'key': item.key, 'value': item.value} }}"
instance_odoo_version: "{{ instance_odoo_setup.odoo_version }}" instance_odoo_version: "{{ instance_odoo_setup.odoo_version }}"
cacheable: no cacheable: no
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
owner: root owner: root
group: root group: root
mode: '0400' mode: '0400'
notify: start odoo docker whitelists notify: start odoo whitelists
when: restrict_internet_access and whitelisted_urls is defined when: restrict_internet_access and whitelisted_urls is defined
tags: odoo_nonprod, odoo_prod tags: odoo_nonprod, odoo_prod
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter