Date de création 2022-08-26Date d’expiration 2022-11-27- name: Install migration files ansible.posix.synchronize: src: migrate dest: /var/www/rouen.fr/web/modules - name: Update file permissions ansible.builtin.file: dest: /var/www/rouen.fr/web/modules/migrate owner: rouen group: rouen recurse: yes - name: Flush Drupal caches become: true become_user: rouen ansible.builtin.command: chdir: /var/www/rouen.fr argv: - vendor/bin/drush - cache:rebuild - name: Import configurations become: true become_user: rouen ansible.builtin.command: chdir: /var/www/rouen.fr argv: - vendor/bin/drush - --yes - config:import - --source=/var/www/rouen.fr/web/modules/{{ item }} - --partial loop: - migrate/migrate_taxonomy/config/roles - migrate/migrate_taxonomy/config/news_theme - migrate/migrate_taxonomy/config/infoclass - migrate/migrate_taxonomy/config/addresscat - migrate/migrate_taxonomy/config/precision_adresse - migrate/migrate_taxonomy/config/search_category - name: Enable migration module become: true become_user: rouen ansible.builtin.command: chdir: /var/www/rouen.fr argv: - vendor/bin/drush - --yes - pm:enable - migrate_taxonomy - name: Run all migrations become: true become_user: rouen ansible.builtin.command: chdir: /var/www/rouen.fr argv: - vendor/bin/drush - --yes - migrate:import - "{{ item }}" loop: - migrate_news_theme_terms - migrate_infoclass_terms - migrate_addresscat_terms - migrate_precision_adresse_terms - migrate_search_category_terms