# == Class: ansible # class ansible ( $ansible_hostfile = '/etc/ansible/hosts', $ansible_roles_path = '/etc/ansible/roles', $ansible_callback_plugins_path = '/etc/ansible/callback_plugins', $ansible_version = '2.0.2.0', $ansible_source = undef, $retry_files_enabled = undef, $retry_files_save_path = undef, ) { include ::logrotate include ::pip package { 'ansible': ensure => $ansible_version, source => $ansible_source, provider => openstack_pip, } if ! defined(File['/etc/ansible']) { file { '/etc/ansible': ensure => directory, } } if ! defined(File[$ansible_callback_plugins_path]) { file {$ansible_callback_plugins_path: ensure => directory, require => File['/etc/ansible'], } } file { '/etc/ansible/ansible.cfg': ensure => present, mode => '0644', owner => 'root', group => 'root', content => template('ansible/ansible.cfg.erb'), require => File['/etc/ansible'], } ::logrotate::file { 'ansible': log => '/var/log/ansible.log', options => [ 'compress', 'copytruncate', 'missingok', 'rotate 7', 'daily', 'notifempty', ], } }