Commit 9f9215e3 authored by David Nowell's avatar David Nowell
Browse files

Install a specific version of Git based on backup

parent cbe64f44
......@@ -95,6 +95,30 @@
include_vars:
file: vars/secret-vars.yml
- name: Create /root/.aws directory
file:
path: "/root/.aws"
state: "directory"
mode: '750'
- name: AWS Config
copy:
src: "aws-config"
dest: "/root/.aws/config"
mode: '600'
- name: AWS Credentials
template:
src: "aws-credentials.j2"
dest: "/root/.aws/credentials"
mode: '600'
owner: "root"
- name: Find latest Gitlab backup version
command: "aws s3 ls umich-vdc-gitlab | grep ee_gitlab_backup.tar | tail -1 | awk '{print $4}' | cut -d'_' -f5"
register: GitVersion
- name: Set firewall rules
copy:
src: "{{ item }}"
......@@ -154,7 +178,7 @@
- name: Install GitLab EE
yum:
name: gitlab-ee
name: gitlab-ee-{{ GitVersion }}.0.el7
state: present
- name: Git is picky about authorized keys file location - ensure it is in default location
......@@ -243,24 +267,6 @@
- "{{ KEYFILE }}"
- "{{ CRTFILE }}"
- name: Create /root/.aws directory
file:
path: "/root/.aws"
state: "directory"
mode: '750'
- name: AWS Config
copy:
src: "aws-config"
dest: "/root/.aws/config"
mode: '600'
- name: AWS Credentials
template:
src: "aws-credentials.j2"
dest: "/root/.aws/credentials"
mode: '600'
owner: "root"
- name: Custom NRPE check
copy:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment