Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFE] Add flag to execute "Play ansible roles" #308

Open
giovannisciortino opened this issue May 2, 2019 · 0 comments
Open

[RFE] Add flag to execute "Play ansible roles" #308

giovannisciortino opened this issue May 2, 2019 · 0 comments

Comments

@giovannisciortino
Copy link

Satellite from version 6.4 support the execution on ansible roles associated to hosts.
A new flag on bootstrap.py script could be useful to trigger automatically the execution of the Ansible roles associated to the host after its registration.

Note: The ansible roles can be associated to an host during registration process associating them to a hostgroup.

This is an example of the API call used to trigger the execution of ansible roles :

[root@client ~]# curl -H "Accept:application/json,version=2" -H "Content-Type:application/json" -X POST -u user:password -k -d "{"job_invocation" : {"job_template_id": 126, "inputs": {}, "ssh": {}, "recurrence": {}, "scheduling": {}, "concurrency_control": {}, "search_query": "name = $(hostname)", "targeting_type": "static_query"}}" https://satellite.work.lab/api/job_invocations

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

No branches or pull requests

1 participant