2017-07-18 25 views
0

でユーザーを作成するには、JIRAでのユーザーの作成には文書が存在しません。問題の作成方法のみ(存在しない)Ansibleは私が<a href="http://docs.ansible.com/ansible/jira_module.html" rel="nofollow noreferrer">Ansible-jira</a>に関する文書を読んだときAnsible.YAMLファイル</p> <p>を使用してJIRAでユーザーを作成する必要がJIRA

YAMLファイルを作成してjiraユーザーを作成する方法はありますか?

答えて

0

残念ながら、Jiraモジュールは問題の追加または変更に制限されています。

これを回避するには、uriモジュール(http://docs.ansible.com/ansible/uri_module.html)と組み合わせてJira rest APIを使用できます。ペイロード(Create New Users using JIRA REST API)がご使用のバージョンと一致するかどうかを確認する必要があります。

- name: Create a JIRA issue 
    uri: 
    url: https://your.jira.example.com/rest/api/2/user 
    method: POST 
    user: your_username 
    password: your_pass 
    body: '{"name":"username","password":"****","emailAddress":"[email protected]","displayName":"user name","notification":"false"}' 
    force_basic_auth: yes 
    status_code: 201 
    body_format: json 
+0

ありがとうございます。私を助けてくれました –

関連する問題

 関連する問題