Skip to content
This repository has been archived by the owner on Jun 5, 2022. It is now read-only.

Add Host in Target File via Ansible #1

Open
sudoerss opened this issue Feb 20, 2019 · 4 comments
Open

Add Host in Target File via Ansible #1

sudoerss opened this issue Feb 20, 2019 · 4 comments

Comments

@sudoerss
Copy link

I want to know how to add hosts in the target file via ansible

Thanks

@juju4
Copy link
Owner

juju4 commented Feb 23, 2019

Targets are defined here
https://github.com/juju4/ansible-smokeping/blob/master/templates/Targets#L26

{% if smokeping_targets_ref %}
{% for target in smokeping_targets_ref %}
++ {{ target | regex_replace('\.', '_') }}Curl
probe = Curl
menu = {{ target }}Web
host = {{ target }}

which points to variable smokeping_targets_ref
you just add fqdn that you want to watch.

@sudoerss
Copy link
Author

Hello juju4,
Thank you for your answer, I wanted to know if there was not a role example done to serve me as an example, I already have a server ansible and smoke ping

@juju4
Copy link
Owner

juju4 commented Mar 9, 2019

Nothing more than the README and travis execution.
I would not recommend to use role on an existing server as setup wont probably match role expected path/format and can break stuff.

@juju4
Copy link
Owner

juju4 commented Jul 14, 2019

is it still relevant? else closing issue.
Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants