Skip to content

Commit 230a957

Browse files
committed
Updated Jenkins Version and ansible task dependency packages for installation via apt packages
1 parent 5b39daa commit 230a957

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

01-jenkins-setup/ansible/jenkins-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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:

01-jenkins-setup/ansible/roles/jenkins-controller/tasks/base.yaml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,30 @@
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:

01-jenkins-setup/ansible/scripts/get-ssh-pub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
import json
33
import sys
44

5-
client = boto3.client('ssm', region_name='us-west-2')
5+
client = boto3.client('ssm', region_name='us-east-1')
66
response = client.get_parameter(Name=sys.argv[1], WithDecryption=True)
77
print(response['Parameter']['Value'])

0 commit comments

Comments
 (0)