Put the library file into the role
Roles can contain embedded library code, which is how roles work when you distribute them on ansible galaxy. Put the library there and remove the old location to prepare for standalone modules. Change-Id: Iaa7906f71bb0a3bc255695e72b6ae061407fa2b8
This commit is contained in:
parent
82fc32cb23
commit
36da8fc39b
|
@ -43,10 +43,7 @@ class ansible (
|
|||
}
|
||||
|
||||
file { '/etc/ansible/library':
|
||||
ensure => directory,
|
||||
recurse => true,
|
||||
source => 'puppet:///modules/ansible/library',
|
||||
require => File['/etc/ansible'],
|
||||
ensure => absent,
|
||||
}
|
||||
|
||||
include logrotate
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[defaults]
|
||||
hostfile=<%= @ansible_hostfile %>
|
||||
library=/usr/share/ansible:/etc/ansible/library
|
||||
library=/usr/share/ansible
|
||||
log_path=/var/log/ansible.log
|
||||
|
|
Loading…
Reference in New Issue