第1章 Getting Started with Ansible in Satellite
Use this guide to configure Satellite to use Ansible, and then information about how to use Ansible for remote execution.
1.1. Configuring your Deployment to Run Ansible Roles
In Satellite, you can import Ansible roles to help with automation of routine tasks. Ansible is enabled by default only on Satellite.
Complete this procedure to configure your Satellite deployment to run Ansible roles.
Procedure
-
Add the roles to the
/etc/ansible/roles
directory on the Satellite and all Capsules from where you want to use the roles. If you want to use custom or third party Ansible roles, ensure to configure an external version control system to synchronize roles between Satellite and Capsules. On all Capsules that you want to use to run Ansible roles on hosts, enable the Ansible plug-in:
# satellite-installer --scenario capsule \ --enable-foreman-proxy-plugin-ansible
- Distribute SSH keys to enable Capsules to connect to hosts using SSH. For more information, see Distributing SSH Keys for Remote Execution in the Managing Hosts guide. Satellite runs Ansible roles the same way it runs remote execution jobs.
- Import the Ansible roles into Satellite.
- Proceed to Using Ansible Roles to Automate Repetitive Tasks on Satellite Hosts in Configuring Satellite To Use Ansible.