- name: Ensure Red Hat Enterprise Linux 9 repositories are synced and content view is published
hosts: localhost
vars_files:
- My_Vault.yml
module_defaults:
group/redhat.satellite.satellite:
username: "{{ My_Username }}"
password: "{{ My_Password }}"
server_url: "{{ My_Server_URL }}"
tasks:
- name: Sync Red Hat Enterprise Linux repositories
redhat.satellite.repository_sync:
product: "Red Hat Enterprise Linux for x86_64"
organization: "Default Organization"
- name: Publish Red Hat Enterprise Linux 9 content view
redhat.satellite.content_view_version:
content_view: "Red Hat Enterprise Linux 9 content view"
organization: "Default Organization"
- name: Ensure Red Hat Enterprise Linux 9 repositories are synced and content view is published
hosts: localhost
vars_files:
- My_Vault.yml
module_defaults:
group/redhat.satellite.satellite:
username: "{{ My_Username }}"
password: "{{ My_Password }}"
server_url: "{{ My_Server_URL }}"
tasks:
- name: Sync Red Hat Enterprise Linux repositories
redhat.satellite.repository_sync:
product: "Red Hat Enterprise Linux for x86_64"
organization: "Default Organization"
- name: Publish Red Hat Enterprise Linux 9 content view
redhat.satellite.content_view_version:
content_view: "Red Hat Enterprise Linux 9 content view"
organization: "Default Organization"
Copy to ClipboardCopied!Toggle word wrapToggle overflow