Version information
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
- Puppet >= 6.21.0 < 8.0.0
- , , , , ,
Tasks:
- ansible_info_confirmation
- ansible_ping_all
- ansible_playbook
Start using this module
Add this module to your Puppetfile:
mod 'artsir-ansible_config', '1.1.3'
Learn more about managing modules with a PuppetfileDocumentation
ansible_config
Configuration of an Ansible host and enablement of basic Ansible commands in Puppet Enterprise Tasks
Table of Contents
- Description
- Setup - The basics of getting started with ansible_config
- Usage - Configuration options and additional functionality
- Task Functions - Basic description of available tasks
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Description
Role::ansible_host
installs and configures Ansible on a CentOS host. Passes hosts and playbook custom file configuration included in /files folder.
Setup
Standard Puppet Module Setup steps
Usage
1)
Add ansible_config::ansible_host class to your PE Group if all you want is to install Ansible.
or
class ansible_config::ansible_host {
}
2)
Add class ansible_config:ansible_setup to setup Ansible's host file and playbook in /etc/ansible on host. (A REQURIEMENT FOR RUNNING TASKS OURSIDE OF ANSIBLE-CONFIRMATION TASK)
or
class ansible_config::ansible_setup {
}
!!! I would advise to review and update the hosts
and playbook.yml
files in this /module/file folder or repoint.
And now you can run task functions
NOTE: You can modify hosts file by going to etc/puppetlabs/code/envirioment/...ENVIROMENT
.../modules/ansible_config/files/hosts
Tasks
There are a few tasks for your use.
ansible_info_confirmation
: - Confirms presence of Ansible on a host and retrives some basic info. /n
ansible_ping_all
: - Ability to Ping all host specified in host file /n
ansible_playbook
: - Runs ansible-playbook
command on Ansible host and optional variables. /n
Limitations
Currently tested with CentOS only.
Development
Is on-going.
What are tasks?
Modules can contain tasks that take action outside of a desired state managed by Puppet. It’s perfect for troubleshooting or deploying one-off changes, distributing scripts to run across your infrastructure, or automating changes that need to happen in a particular order as part of an application deployment.
Tasks in this module release
ansible_info_confirmation
Confirmation of Ansible Installation and some basic information
Dependencies
- puppetlabs/stdlib (>= 4.13.1 < 5.0.0)
- puppet-epel (>= 3.0.0 < 4.9.0)
- puppet-python (>= 6.0.0 < 6.9.9)