From e12e49f0a20549e0663ddf93b0a091287f336c3a Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Nov 21 2019 08:51:05 +0000 Subject: Vagrant provisioning ansible role: reorder tasks so the register and the task that check the registered var are together --- diff --git a/dev/ansible/roles/pagure-dev/tasks/main.yml b/dev/ansible/roles/pagure-dev/tasks/main.yml index c446597..97a4354 100644 --- a/dev/ansible/roles/pagure-dev/tasks/main.yml +++ b/dev/ansible/roles/pagure-dev/tasks/main.yml @@ -58,12 +58,6 @@ - python3-virtualenv state: present -- name: register the libgit2 version installed - shell: rpm -q libgit2|cut -d \- -f 2| cut -d \. -f 1,2 - register: libgit2_version - args: - warn: false - # Add various helpful configuration files - name: Install a custom bashrc become_user: "{{ ansible_env.SUDO_USER }}" @@ -84,6 +78,12 @@ become_user: "{{ ansible_env.SUDO_USER }}" copy: src=bash_history dest=/home/{{ ansible_env.SUDO_USER }}/.bash_history +- name: register the libgit2 version installed + shell: rpm -q libgit2|cut -d \- -f 2| cut -d \. -f 1,2 + register: libgit2_version + args: + warn: false + # Install Pagure inside a virtualenv and configure it - name: Install pygit2 in the virtualenv become_user: "{{ ansible_env.SUDO_USER }}"