Skip to content

Commit

Permalink
Syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli001 committed Aug 1, 2024
1 parent 3718635 commit b5e4e2f
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions rhel-arm-baseline.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
---
- name: RHEL ARM Baseline
hosts: all
become: true
tasks:
- name: Ensure latest packages are installed
package:
name: '*'
state: latest
hosts: all
become: true
tasks:
- name: Ensure latest packages are installed
package:
name: "*"
state: latest

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

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

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

- name: Create example user
Expand All @@ -36,13 +36,13 @@ tasks:
state: present
groups: wheel
shell: /bin/bash
password: "{{ 'password' | password_hash('sha512') }}" # Change 'password' to a secure password or hash
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
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 All @@ -57,7 +57,7 @@ tasks:

- name: Open SSH port in firewall
firewalld:
service: ssh
service: ssh
permanent: true
state: enabled
immediate: yes
Expand All @@ -70,10 +70,10 @@ tasks:
command: timedatectl set-timezone UTC

- name: Reboot the system to apply changes
reboot:
reboot:
msg: "Reboot initiated by Ansible for baseline setup"
connect_timeout: 5
reboot_timeout: 600
pre_reboot_delay: 0
post_reboot_delay: 30
test_command: whoami
test_command: whoami

0 comments on commit b5e4e2f

Please sign in to comment.