Ansible Playbook

15 views
Skip to first unread message

BHARATHI DURAI RAJ

unread,
Feb 23, 2019, 9:29:29 AM2/23/19
to Ansible Project
Can you please help me on correcting the below playbook...
- name: Delete  Project

    uri:

      url: "https://dev.azure.com/{{ org }}/_apis/projects?api-version=4.1"

      method: DELETE

      user: "{{ vsts_user }}"

      password: "{{ pattoken }}"

      return_content: yes

      force_basic_auth: yes

      validate_certs: yes

      body_format: json

      headers:

        Accept: "application/json"

      body: "{{ lookup('template','./templates/{{ Testing_bharathidurairaj }}') }}"

      status_code: 202

    when: list_project.status != 200

    register: vsts_project

    delegate_to: localhost

    run_once: true


I am trying to delete a azure devops project using the above playbook....

Reply all
Reply to author
Forward
0 new messages