Skip to content

Commit

Permalink
Updated for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli001 committed Aug 1, 2024
1 parent b5e4e2f commit b6e39c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
7 changes: 0 additions & 7 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,3 @@ phases:
commands:
- cd ${CODEBUILD_SRC_DIR}/${CODE_SRC_DIR}
- echo "Checking for the AMI ID file"
- test -s ami_id.txt || exit 1

artifacts:
files:
- '**/*'
discard-paths: yes
- ami_id.txt
14 changes: 7 additions & 7 deletions rhel-arm-baseline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
- name: RHEL ARM Baseline
hosts: all
become: true

tasks:
- name: Ensure latest packages are installed
package:
yum:
name: "*"
state: latest

- name: Install required packages
package:
yum:
name:
- vim
- git
- wget
- net-tools
- unzip
- epel-release
- htop
state: present

- name: Remove curl-minimal if installed
package:
yum:
name: curl-minimal
state: absent

- name: Install curl
package:
yum:
name: curl
state: present

Expand All @@ -36,7 +36,7 @@
state: present
groups: wheel
shell: /bin/bash
password: "{{ 'password' | password_hash('sha512') }}" # Change 'password' to a secure password or hash
password: "{{ 'secure_password' | password_hash('sha512') }}" # Replace 'secure_password' with a strong password

- name: Configure SSH for exampleuser
authorized_key:
Expand All @@ -45,7 +45,7 @@
key: "{{ lookup('file', '/path/to/exampleuser_ssh_key.pub') }}" # Replace with the actual path to the public key

- name: Ensure firewalld is installed and running
package:
yum:
name: firewalld
state: present

Expand Down

0 comments on commit b6e39c0

Please sign in to comment.