Skip to content

Commit

Permalink
errors , commented out
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli001 committed Aug 1, 2024
1 parent a53381b commit 81eaf4b
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions rhel-arm-baseline.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
- name: RHEL ARM Baseline
hosts: all
become: true
Expand Down Expand Up @@ -46,25 +45,28 @@
name: curl
state: present

- name: Install passlib for password hashing
pip:
name: passlib
state: present
executable: /usr/bin/pip3
# Commenting out due to passlib installation issue
# - name: Install passlib for password hashing
# pip:
# name: passlib
# state: present
# executable: /usr/bin/pip3

- name: Create example user
user:
name: exampleuser
state: present
groups: wheel
shell: /bin/bash
password: "{{ 'password' | password_hash('sha512') }}" # Change 'password' to a secure password or hash
# Commenting out due to user creation issue
# - name: Create example user
# user:
# name: exampleuser
# state: present
# groups: wheel
# shell: /bin/bash
# password: "{{ 'password' | password_hash('sha512') }}" # Change 'password' to a secure password or hash

- name: Configure SSH for exampleuser
authorized_key:
user: exampleuser
state: present
key: "{{ lookup('file', '/path/to/exampleuser_ssh_key.pub') }}" # Replace with the actual path to the public key
# Commenting out SSH key configuration as it's dependent on user creation
# - name: Configure SSH for exampleuser
# authorized_key:
# user: exampleuser
# state: present
# 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:
Expand Down

0 comments on commit 81eaf4b

Please sign in to comment.