Hi friends:
I am trying to integrate Foreman with Ansible but not able to make it
working :
Version details :
Ansible : -->> ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5
20150623 (Red Hat 4.8.5-11)]
foreman dashboard version : 1.15.2
I have followed the official URL to integrate Foreman with Ansible .
But i am not able to make it work .
Issue :
1.>NO facts coming
2.>When i set password in Foreman for root user in Ansible tab ,and then
able to execute playbook in role .
Kindly update what are more changes I need to make at ansible and foreman
end to make it work .
If anyone done this ,it will be grt you like to share it .
Thanks in Advance :
Hi friends ,
kindly suggest to make it working foreman 1.15 with latest ansible 2.3
using call_back .
Thanks in Advance
Shyam Keshri
···
On Thursday, August 3, 2017 at 2:49:41 PM UTC+5:30, shyam sundar Keshari wrote:
>
> Hi friends:
>
> I am trying to integrate Foreman with Ansible but not able to make it
> working :
>
> Version details :
>
> Ansible : -->> ansible 2.3.1.0
> config file = /etc/ansible/ansible.cfg
> configured module search path = Default w/o overrides
> python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5
> 20150623 (Red Hat 4.8.5-11)]
>
> foreman dashboard version : 1.15.2
>
> I have followed the official URL to integrate Foreman with Ansible .
>
> But i am not able to make it work .
>
> Issue :
>
> 1.>NO facts coming
> 2.>When i set password in Foreman for root user in Ansible tab ,and then
> able to execute playbook in role .
>
>
> Kindly update what are more changes I need to make at ansible and foreman
> end to make it work .
>
> If anyone done this ,it will be grt you like to share it .
>
> Thanks in Advance :
>
>
>
Hello,
for the facts upload I think I found the fix. You will need to modify the
callback script, try applying this patch [1]. It seems that in some cases,
there's no setup module, so we also check ansible_facts being present.
[1] https://github.com/theforeman/foreman_ansible/pull/96/files
Hope this helps
···
--
Marek
On čtvrtek 3. srpna 2017 11:19:40 CEST shyam sundar Keshari wrote:
Hi friends:
I am trying to integrate Foreman with Ansible but not able to make it
working :
Version details :
Ansible : -->> ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5
20150623 (Red Hat 4.8.5-11)]
foreman dashboard version : 1.15.2
I have followed the official URL to integrate Foreman with Ansible .
But i am not able to make it work .
Issue :
1.>NO facts coming
2.>When i set password in Foreman for root user in Ansible tab ,and then
able to execute playbook in role .
Kindly update what are more changes I need to make at ansible and foreman
end to make it work .
If anyone done this ,it will be grt you like to share it .
Thanks in Advance :
Hi Shyam! I've had a similar problem: the solution I've found was to change
the Foreman callback that comes with Ansible, in the way described at this
link:
https://github.com/theforeman/foreman_ansible/issues/86#issuecomment-302123143
.
Don't know if this will solve all the problems. I've solved the user issues
exporting a new ssh key for the 'foreman' user on my hosts, but I'm not
sure that's is the best way.
Best.
Pietro Gabelli
···
On Thursday, August 3, 2017 at 11:19:41 AM UTC+2, shyam sundar Keshari wrote:
>
> Hi friends:
>
> I am trying to integrate Foreman with Ansible but not able to make it
> working :
>
> Version details :
>
> Ansible : -->> ansible 2.3.1.0
> config file = /etc/ansible/ansible.cfg
> configured module search path = Default w/o overrides
> python version = 2.7.5 (default, Nov 6 2016, 00:28:07) [GCC 4.8.5
> 20150623 (Red Hat 4.8.5-11)]
>
> foreman dashboard version : 1.15.2
>
> I have followed the official URL to integrate Foreman with Ansible .
>
> But i am not able to make it work .
>
> Issue :
>
> 1.>NO facts coming
> 2.>When i set password in Foreman for root user in Ansible tab ,and then
> able to execute playbook in role .
>
>
> Kindly update what are more changes I need to make at ansible and foreman
> end to make it work .
>
> If anyone done this ,it will be grt you like to share it .
>
> Thanks in Advance :
>
>
>