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 b6e39c0 commit cc9fcfc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
1 change: 0 additions & 1 deletion build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ build {
inline_shebang = "/bin/sh"
inline = [
"echo 'Build finished!'",
"echo '${build.amis}' > ami_id.txt",
]
}
}
23 changes: 17 additions & 6 deletions rhel-arm-baseline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,26 @@
- name: RHEL ARM Baseline
hosts: all
become: true
vars:
ansible_python_interpreter: /usr/bin/python3.9 # Explicitly define the Python interpreter

tasks:
- name: Install pip
package:
name: python3-pip
state: present

- name: Install passlib
pip:
name: passlib

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

- name: Install required packages
yum:
package:
name:
- vim
- git
Expand All @@ -21,12 +32,12 @@
state: present

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

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

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

- name: Configure SSH for exampleuser
authorized_key:
Expand All @@ -45,7 +56,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
yum:
package:
name: firewalld
state: present

Expand Down

0 comments on commit cc9fcfc

Please sign in to comment.