From 8dc40ecb1e59accb3c0fe704179b50bef41a5ef5 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sat, 4 May 2019 18:43:20 +0200 Subject: [PATCH] Specify git branch --- dhcp.yml | 1 + roles/re2o-service/tasks/main.yml | 2 +- roles/re2o-service/tasks/service_user.yml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dhcp.yml b/dhcp.yml index 6c3b338..8434f06 100644 --- a/dhcp.yml +++ b/dhcp.yml @@ -4,6 +4,7 @@ vars: service_repo: https://gitlab.federez.net/re2o/dhcp.git service_name: dhcp + service_version: master service_config: hostname: re2o-server.adm.auro.re username: service-user diff --git a/roles/re2o-service/tasks/main.yml b/roles/re2o-service/tasks/main.yml index 3646cdd..3028ce8 100644 --- a/roles/re2o-service/tasks/main.yml +++ b/roles/re2o-service/tasks/main.yml @@ -6,7 +6,7 @@ git: repo: "{{ service_repo }}" dest: "{{ service_homedir }}/{{ service_name }}" - version: master + version: "{{ service_version }}" become: true become_user: "{{ service_user }}" diff --git a/roles/re2o-service/tasks/service_user.yml b/roles/re2o-service/tasks/service_user.yml index 0818676..389b72e 100644 --- a/roles/re2o-service/tasks/service_user.yml +++ b/roles/re2o-service/tasks/service_user.yml @@ -16,4 +16,4 @@ state: directory owner: "{{ service_user }}" group: nogroup - mode: 0700 + mode: 0755