DarkMatter68 / satcb

Satellite Server 6 Content Baseline - automatically manage content views for consistent patching baseline
GNU General Public License v3.0
4 stars 0 forks source link

_promote_to_environment.yml: not working since API call change between v6.7 and v6.8 #6

Closed DarkMatter68 closed 2 years ago

DarkMatter68 commented 2 years ago
- name: "{{ _subtask_name_prefix }}  -  {{ _satcb_task_description }}"
  uri:
    url: "{{ _satcb_url_katello_api }}/v2/content_view_versions/{{ _content_view_version_last.json.id }}/promote"
    method: POST
    body:
      id: "{{ _content_view_version_last.json.id }}"
      description: "{{ _publish_description }}"
      environment_ids: [ "{{ _satcb_env_id }}" ]
    body_format: json
    status_code: 202
    user: "{{ satcb_user }}"
    password: "{{ satcb_password }}"
    validate_certs: no
    force_basic_auth: yes
    timeout: "{{ satcb_url_timeout }}"
  register: _content_promote