DCD-880: Variablify create_backups tasks

This commit is contained in:
Ben Partridge
2020-01-03 12:04:40 +11:00
parent 7f715f409c
commit 58692b2843
5 changed files with 14 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
---
atl_slingshot_yum_repo_url: 'https://packages.atlassian.com/atlassian-slingshot-rpm'
atl_slingshot_deb_pubkey_url: 'https://packages.atlassian.com/api/gpg/key/public'
atl_slingshot_deb_repo_url: 'https://packages.atlassian.com/atlassian-slingshot-deb'
atl_slingshot_deb_repo_components: 'stable main'

View File

@@ -8,12 +8,8 @@ lint:
platforms: platforms:
- name: amazon_linux2 - name: amazon_linux2
image: amazonlinux:2 image: amazonlinux:2
groups:
- aws_node_local
- name: ubuntu_lts - name: ubuntu_lts
image: ubuntu:bionic image: ubuntu:bionic
groups:
- aws_node_local
provisioner: provisioner:
name: ansible name: ansible
lint: lint:

View File

@@ -2,5 +2,10 @@
- name: Converge - name: Converge
hosts: all hosts: all
tasks: tasks:
# Role default vars must be included because we aren't running the whole role, just a subset of tasks
- name: Include role vars
include_vars:
file: ../../defaults/main.yml
- name: Install distro-specific backup support packages - name: Install distro-specific backup support packages
include_tasks: "../../tasks/{{ ansible_distribution|lower }}.yml" include_tasks: "../../tasks/{{ ansible_distribution|lower }}.yml"

View File

@@ -6,7 +6,7 @@
file: atlassian-slingshot file: atlassian-slingshot
state: present state: present
description: Atlassian Slingshot description: Atlassian Slingshot
baseurl: https://packages.atlassian.com/atlassian-slingshot-rpm baseurl: "{{ atl_slingshot_yum_repo_url }}"
gpgcheck: no gpgcheck: no
- name: Install atlassian-slingshot - name: Install atlassian-slingshot

View File

@@ -6,12 +6,12 @@
- name: Add atlassian-slingshot debian repo public key - name: Add atlassian-slingshot debian repo public key
apt_key: apt_key:
url: https://packages.atlassian.com/api/gpg/key/public url: "{{ atl_slingshot_deb_pubkey_url }}"
state: present state: present
- name: Add atlassian-slingshot debian repository - name: Add atlassian-slingshot debian repository
apt_repository: apt_repository:
repo: deb https://packages.atlassian.com/atlassian-slingshot-deb stable main repo: "deb {{ atl_slingshot_deb_repo_url }} {{ atl_slingshot_deb_repo_components }}"
state: present state: present
filename: atlassian-slingshot filename: atlassian-slingshot