Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

added a post config #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ satellite_deployment_repositories:
- { product_name: 'Red Hat Enterprise Linux Server', name_repo: 'Red Hat Satellite Tools {{ satellite_deployment_version }} (for RHEL 7 Server) (RPMs)', architecture: 'x86_64', state: enable}
- { product_name: 'Red Hat Enterprise Linux Server', name_repo: 'Red Hat Enterprise Linux 7 Server - Extras (RPMs)', architecture: 'x86_64', state: enable}

satellite_settings:
- name: "default_download_policy"
value: "immediate"
- name: "unregister_delete_host"
value: "true"
- name: "errata_status_installable"
value: "true"
- name: "login_text"
value: "I've read & consent to terms in IS user agreement."

# configure_capsules:
satellite_deployment_puppet_env: "production"

Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
- include: install_software.yml
- include: install_satellite.yml
- include: configure_satellite.yml
- include post_config.yml
21 changes: 21 additions & 0 deletions tasks/post_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# TASKS
- name: Configuring Satellite 6 server | Common Settings
theforeman.foreman.foreman_setting:
username: "{{ satellite_deployment_admin_username }}"
password: "{{ satellite_deployment_admin_password }}"
server_url: "https://{{ ansible_fqdn }}"
name: "{{ item.name }}"
value: "{{ item.value }}"
with_items:
- "{{ satellite_settings }}"

- name: Configuring Satellite 6 server | Disconnected Settings
theforeman.foreman.foreman_setting:
username: "{{ satellite_deployment_admin_username }}"
password: "{{ satellite_deployment_admin_password }}"
server_url: "https://{{ ansible_fqdn }}"
name: "content_disconnected"
value: "true"
when: rhn_connect == 'disconnect'

1 change: 1 addition & 0 deletions tasks/registration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
username: "{{ satellite_deployment_rhn_user }}"
password: "{{ satellite_deployment_rhn_password }}"
consumer_name: "{{ satellite_deployment_hostname_full }}"
pool: '^(Red Hat Satellite Infrastructure Subscription)$'
tags:
- "rhn"
- "skip_ansible_lint" # ANSIBLE0012
Expand Down