From 81eaf4bdd222dce07c561478fb1e070ce266dade Mon Sep 17 00:00:00 2001 From: lolli001 Date: Thu, 1 Aug 2024 19:11:48 -0400 Subject: [PATCH] errors , commented out --- rhel-arm-baseline.yaml | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/rhel-arm-baseline.yaml b/rhel-arm-baseline.yaml index f14ebe6..e5b08c3 100644 --- a/rhel-arm-baseline.yaml +++ b/rhel-arm-baseline.yaml @@ -1,4 +1,3 @@ ---- - name: RHEL ARM Baseline hosts: all become: true @@ -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: