-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.yml
45 lines (39 loc) · 1.68 KB
/
example.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
---
- name: Example playbook for generating new custom iso
hosts: target1
become: true
vars:
#Directories and files
my_original_iso_full_path: /ISO-files/rhel-8.5-x86_64-dvd.iso
my_custom_iso: /ISO-files/my_custom.iso
my_working_dir: /tmp/working-dir
my_mnt_dir: /tmp/mnt-dir
#General iso configuration
my_system_language: en_US
my_keyboard_layout: es
my_time_zone: Europe/Paris
my_root_pass: redhat
#Networking options for iso file
my_network_bootprotocol: dhcp #Mandatory variable, options are "dhcp" or "static"
my_hostname: testhostname #Optional
my_netdevice: eht1 #Optional, only to be used if my_network_bootprotocol is "static"
my_ip: 192.168.1.23 #Mandatory when my_network_bootprotocol is "static"
my_netmask: 24 #Optional, only to be used if my_network_bootprotocol is "static"
my_gateway: 4.5.6.7 #Optional, only to be used if my_network_bootprotocol is "static"
my_dns_server: 8.8.8.8 #Optional, only to be used if my_network_bootprotocol is "static"
#Optional Red Hat CDN user and password for registering with Insights
my_rhn_user: myuser
my_rhn_pass: mypassword
#Optional, users to be created. You can add as many users as you want by growing the dictionary with the same structure
#Every entry on the dictionary must have "name" and "password" fields, optionally you can define additional groups for the user with the "groups" field (see example below)
my_users:
- name: ansible
password: redhat
groups: wheel
- name: preciado
password: redhat
groups: wheel
- name: pablo
password: redhat
roles:
- custom-iso-role