-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinitialconfig.yml
46 lines (39 loc) · 1.05 KB
/
initialconfig.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
---
- name: Perform inital configs of lab VMs
hosts: "{{ vm_name }}"
gather_facts: false
serial: 1
tasks:
- name: copy SSH key
authorized_key:
user: root
state: present
key: https://github.com/lynndixon.keys
- name: Install Katello RPM for Satellite Server
yum:
name: https://sat6.shadowman.dev/pub/katello-ca-consumer-latest.noarch.rpm
state: present
- name: Use Activation Key to Register to Satellite
redhat_subscription:
state: present
activationkey: RHEL7 Everything
org_id: Shadow_Man
ignore_errors: true
- name: Enable Repositories
rhsm_repository:
name: "{{ repos }}"
purge: True
vars:
repos:
- rhel-7-server-rpms
- rhel-7-server-extras-rpms
- rhel-7-server-optional-rpms
- name: Add Fancy Legal Disclaimer
copy:
src: templates/add_motd
dest: /etc/motd
- name: Configure MOTD
lineinfile:
path: /etc/motd
line: " ----- This Machine has been configured with Ansible! ---- "
create: yes