-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci_apps.yml
38 lines (36 loc) · 1.12 KB
/
ci_apps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
# Ansible Playbook to Install Current Applications
- name: Install All Applications
hosts: localhost
become: yes
tasks:
- name: Get the DB Password
shell: aws --region us-east-1 --output json ssm get-parameters --names /DDBCorp/CI_Apps/Prod/RDSPassword --with-decryption | jq '.Parameters | from_entries | ."/DDBCorp/CI_Apps/Prod/RDSPassword"' | sed 's/"//g'
register: rdsdbpassword
- name: Install XYZ Application
git:
repo: https://github.com/concat/xyz.git
dest: /var/www/xyz
clone: yes
force: yes
update: yes
version: prod
- name: Insert Production Database password
replace:
path: /var/www/xyz/config/database.php
regexp: 'MYPRODDBPASSWORDHERE'
replace: '{{ rdsdbpassword.stdout }}'
- name: Install UVW Application
git:
repo: https://github.com/concat/uvw.git
dest: /var/www/uvw
clone: yes
force: yes
update: yes
version: prod
- name: Insert Production Database password
replace:
path: /var/www/uvw/config/database.php
regexp: 'MYPRODDBPASSWORDHERE'
replace: '{{ rdsdbpassword.stdout }}'
...