This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
collections: | |
# Install a collection from Ansible Galaxy. | |
- name: community.general | |
source: https://galaxy.ansible.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
become: true | |
vars: | |
- addomain: "mydomain" | |
- user: "myuser" | |
vars_prompt: | |
- name: password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
vars: | |
satellite_fqdn: satellite.local | |
satellite_port: 443 | |
satellite_user: admin | |
satellite_password: changeme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() { | |
cat <<EOF | |
Creates a host on a Satellite server | |
Usage: $0 | |
-g, --hostgroup hostgroup ID | |
-h, --host host to create |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Register a host to satellite | |
hosts: all | |
vars: | |
satellite_url: https://satellite-6-6.local:8443 | |
activationkey: RHEL-9 | |
organization: camptocamp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Export assets from one Ansible Controller (eg. AWX) and import to another one (eg. AAP2) | |
hosts: localhost | |
vars: | |
source_controller_host: "https://source-awx.example.com" | |
source_controller_user: "admin" | |
source_controller_password: "password" | |
target_controller_host: "https://target-aap2.example.com" | |
target_controller_user: "admin" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Check if Content View is up to date on Capsule | |
hosts: localhost | |
tasks: | |
- name: Retrieve values from Satellite | |
ansible.builtin.uri: | |
url: "https://{{ satellite_fqdn }}/katello/api/capsules/{{ capsule_id }}/content/sync" | |
method: GET | |
url_username: "{{ satellite_user }}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<seclabel type='none' model='selinux'/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "generic/ubuntu2204" | |
config.vm.provider :libvirt do |v| | |
v.storage_pool_name = "libvirt-home" | |
v.memory = "4096" | |
v.cpus = "4" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
vars: | |
responsible_class: JndiLookup.class | |
tasks: | |
- name: Check if filename has been provided | |
ansible.builtin.fail: |
NewerOlder