File tree Expand file tree Collapse file tree 3 files changed +24
-12
lines changed
roles/jenkins-controller/tasks Expand file tree Collapse file tree 3 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 77 vars :
88 efs_mount_dir : " /data"
99 jenkins_data_dir : " /data/jenkins"
10- jenkins_lts_version : " 2.387 .1"
10+ jenkins_lts_version : " 2.492 .1"
1111
1212
1313 roles :
Original file line number Diff line number Diff line change 1313 name : python3-pip
1414 state : present
1515
16- - name : Install boto3 using pip3
17- become : true
18- pip :
19- name : boto3
16+ - name : Install boto3 using apt
17+ apt :
18+ name : python3-boto3
19+ state : present
20+ become : yes
21+
22+ - name : Install dependencies
23+ apt :
24+ name :
25+ - curl
26+ - unzip
2027 state : present
2128
22- - name : Install AWS CLI using pip
23- become : true
24- pip :
25- name : awscli
26- state : latest
27- executable : pip3
29+ - name : Download AWS CLI installation script
30+ shell : curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "/tmp/awscliv2.zip"
31+
32+ - name : Unzip AWS CLI installation package
33+ unarchive :
34+ src : /tmp/awscliv2.zip
35+ dest : /tmp/
36+ remote_src : yes
37+
38+ - name : Install AWS CLI
39+ shell : sudo /tmp/aws/install
2840
2941- name : Install Java JDK 17
3042 apt :
Original file line number Diff line number Diff line change 22import json
33import sys
44
5- client = boto3 .client ('ssm' , region_name = 'us-west-2 ' )
5+ client = boto3 .client ('ssm' , region_name = 'us-east-1 ' )
66response = client .get_parameter (Name = sys .argv [1 ], WithDecryption = True )
77print (response ['Parameter' ]['Value' ])
You can’t perform that action at this time.
0 commit comments