-
Notifications
You must be signed in to change notification settings - Fork 3
/
aap_host_prepare.yml
100 lines (100 loc) · 2.66 KB
/
aap_host_prepare.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
- name: Prepare host for AAP installation
hosts: all
become: true
gather_facts: false
vars:
accounts_local_groups_create:
- name: admin
gid: 4444
accounts_local_users_create:
- name: admin
password: Foobar_12
uid: 4444
group: admin
create_home: true
shell: /bin/bash
expires: -1
sudo_allow_all: true
sudo_passwordless: true
authorized_keys:
- ssh-ed25519 ... id_ed25519.pub
accounts_local_password_encrypted: false
boot_parameters_enable:
- quiet
boot_parameters_disable:
- debug
- no_timer_check
- resume
- rhgb
boot_parameters_timeout: 1
boot_parameters_reboot: false
etc_hosts_self_add: true
etc_hosts_omit_entries: ipv6
guest_agent_enable: true
guest_agent_remove_firmware: true
ipv6_setup_enable: false
packages_install:
- bash-completion
- bind-utils
- curl
- firewalld
- man-pages
- nano
- openssh-clients
- psmisc
- sos
- tar
- zstd
- podman
- python3-cryptography
- python3-psycopg2
- rsync
packages_install_weak_deps: true
packages_install_display_results: true
packages_remove:
- gofer
- katello-agent
- puppet-agent
- rhn*
- telnet-server
- flashrom
- fonts*
- gawk-all-langpacks
- gcc*
- geolite*
- hwdata
- initscripts-rename-device
- i*-firmware
- l*-firmware*
- kernel-tools*
- NetworkManager-team
- NetworkManager-tui
- parted
- sssd*
- libsss*
packages_remove_autoremove: true
packages_remove_display_results: true
service_state_enable:
- firewalld.service
#sshd_options:
# AllowGroups: aapadmin
system_hostname: "{{ ansible_facts.fqdn | lower }}"
system_locale: auto
system_update_reboot_policy: when_updated
roles:
- myllynen.rhel_ansible_roles.system_hostname
- myllynen.rhel_ansible_roles.ipv6_setup
- myllynen.rhel_ansible_roles.etc_hosts
- myllynen.rhel_ansible_roles.guest_agent
- myllynen.rhel_ansible_roles.packages_remove
- myllynen.rhel_ansible_roles.boot_parameters
- myllynen.rhel_ansible_roles.system_locale
- myllynen.rhel_ansible_roles.system_update
- myllynen.rhel_ansible_roles.accounts_local
- myllynen.rhel_ansible_roles.packages_install
- myllynen.rhel_ansible_roles.performance_tuning
- myllynen.rhel_ansible_roles.security_hardening
- myllynen.rhel_ansible_roles.service_state
- myllynen.rhel_ansible_roles.sshd_configuration
- myllynen.rhel_ansible_roles.system_init