How do i tie Ansible's inventory to cobbler?

0 votes
How do I tie Ansible's inventory to Cobbler?
Mar 24 in Ansible by Neel

1 answer to this question.

0 votes

To tie Ansible’s inventory to Cobbler, copy this script to /etc/ansible and chmod +x the file. Run cobblerd any time you use Ansible and use the -i command line option (e.g. -i /etc/ansible/ to communicate with Cobbler using Cobbler’s XMLRPC API.

Add a cobbler.ini file in /etc/ansible so Ansible knows where the Cobbler server is and some cache improvements can be used. For example:


# Set Cobbler's hostname or IP address
host =

# API calls to Cobbler can be slow. For this reason, we cache the results of an API
# call. Set this to the path you want cache files to be written to. Two files
# will be written to this directory:
#   - ansible-cobbler.cache
#   - ansible-cobbler.index

cache_path = /tmp

# The number of seconds a cache file is considered valid. After this many
# seconds, a new API call will be made, and the cache file will be updated.

cache_max_age = 900
answered Mar 24 by Aleesha

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

How do I configure a jump host to access servers that I have no direct access to?

You can set a ProxyCommand in the ansible_ssh_common_args inventory variable. Any ...READ MORE

answered Jan 30 in Ansible by Mahir
0 votes
1 answer
0 votes
1 answer
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
0 votes
1 answer
0 votes
1 answer

When to use dynamic inventory?

If your Ansible inventory fluctuates over time, ...READ MORE

answered Mar 24 in Ansible by Nitesh
0 votes
1 answer

Requirements to used aws_ssm module

The below requirements are needed on the ...READ MORE

answered Mar 24 in Ansible by Hitesh