Forge Home

ansible_config

Install and run ansible playbook

16,510 downloads

5,097 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.1.3 (latest)
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.119
  • 1.0.118
  • 1.0.116
  • 1.0.115
  • 1.0.114
  • 1.0.113
  • 1.0.112
  • 1.0.111
  • 1.0.110
  • 1.0.109
  • 1.0.108
  • 1.0.107
  • 1.0.106
  • 1.0.105
  • 1.0.104
  • 1.0.103
  • 1.0.102
  • 1.0.101
  • 1.0.100
  • 1.0.99
  • 1.0.98
  • 1.0.97
  • 1.0.96
  • 1.0.95
  • 1.0.94
  • 1.0.93
  • 1.0.92
  • 1.0.91
  • 1.0.90
  • 1.0.89
  • 1.0.87
  • 1.0.86
  • 1.0.85
  • 1.0.84
  • 1.0.83
  • 1.0.82
  • 1.0.81
  • 1.0.80
  • 1.0.79
  • 1.0.78
  • 1.0.77
  • 1.0.76
  • 1.0.75
  • 1.0.74
  • 1.0.73
  • 1.0.72
  • 1.0.71
  • 1.0.70
  • 1.0.69
  • 1.0.68
  • 1.0.67
  • 1.0.66
  • 1.0.65
  • 1.0.64
  • 1.0.63
  • 1.0.62
  • 1.0.60
  • 1.0.59
  • 1.0.58
  • 1.0.57
  • 1.0.56
  • 1.0.55
  • 1.0.54
  • 1.0.53
  • 1.0.52
  • 1.0.51
  • 1.0.50
  • 1.0.49
  • 1.0.48
  • 1.0.47
  • 1.0.46
  • 1.0.45
  • 1.0.44
  • 1.0.43
  • 1.0.42
  • 1.0.41
  • 1.0.40
  • 1.0.39
  • 1.0.38
  • 1.0.37
  • 1.0.36
  • 1.0.35
  • 1.0.34
  • 1.0.33
  • 1.0.32
  • 1.0.31
  • 1.0.30
  • 1.0.29
  • 1.0.28
  • 1.0.27
  • 1.0.26
  • 1.0.25
  • 1.0.24
  • 1.0.23
  • 1.0.22
  • 1.0.21
  • 1.0.20
  • 1.0.19
  • 1.0.18
  • 1.0.17
  • 1.0.16
  • 1.0.15
  • 1.0.14
  • 1.0.13
  • 1.0.12
  • 1.0.11
  • 1.0.10
  • 1.0.9
  • 1.0.8
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4 (deleted)
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.1.6 (deleted)
  • 0.1.5 (deleted)
  • 0.1.4 (deleted)
  • 0.1.3 (deleted)
  • 0.1.2 (deleted)
  • 0.1.1 (deleted)
  • 0.1.0 (deleted)
released Jan 20th 2022
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

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'artsir-ansible_config', '1.1.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add artsir-ansible_config
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install artsir-ansible_config --version 1.1.3

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

artsir/ansible_config — version 1.1.3 Jan 20th 2022

ansible_config

Configuration of an Ansible host and enablement of basic Ansible commands in Puppet Enterprise Tasks

Table of Contents

  1. Description
  2. Setup - The basics of getting started with ansible_config
  3. Usage - Configuration options and additional functionality
  4. Task Functions - Basic description of available tasks
  5. Limitations - OS compatibility, etc.
  6. 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.