ansible tower curl 启动任务

ansible tower curl 启动template job 任务

 

curl --location --request POST 'https://192.168.222.100/api/v2/job_templates/9/launch/' \
--header 'Authorization: Basic YWRtaW46dG9vcg==' \
--header 'Content-Type: application/json' \
--data-raw '{
    "extra_vars": {
        "inventory": "127.0.0.1",
        "msg": "red sun"
    }

}'

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章