# Pulling list of content views from satellite using ansible

**URL:** <https://forum.ansible.com/t/pulling-list-of-content-views-from-satellite-using-ansible/39761>\
**Category:** Get Help\
**Tags:** satellite\
**Created:** [January 22, 2025, 10:12am UTC](https://forum.ansible.com/t/pulling-list-of-content-views-from-satellite-using-ansible/39761 "2025-01-22T10:12:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haggis](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Haggis](https://forum.ansible.com/u/Haggis)\
**Post date:** [January 22, 2025, 10:12am UTC](https://forum.ansible.com/t/pulling-list-of-content-views-from-satellite-using-ansible/39761/1 "2025-01-22T10:12:46Z")

</div>

I am trying to create an ansible playbook that pulls down a list of content views from satellite, then creates new versions of the content views.

Creating new versions of the content views is easy, but trying to get a simple list of content\_views has been driving me crazy.

I’ve tried using

- redhat.satellite.content\_view
- redhat.satellite.resource\_info

Examples i have found just dont work.

```
- name: Fetch all content views
  redhat.satellite.content_view_info:
    server_url: "https://satellite.example.com"
    username: "admin"
    password: "password"
    validate_certs: false
  register: content_views

- name: Display content views
  debug:
    msg: "Content view: {{ item.name }} with ID: {{ item.id }}"
  loop: "{{ content_views.results }}"

```

Just coming back with too much information and not the list i’m looking for.

---

<div class="post-metadata">

**Author:** ![chris](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/chris/32/293_2.png) [@chris](https://forum.ansible.com/u/chris)\
**Post date:** [January 23, 2025, 1:39pm UTC](https://forum.ansible.com/t/pulling-list-of-content-views-from-satellite-using-ansible/39761/2 "2025-01-23T13:39:38Z")

</div>

If you post the output and and explain how you need it to be filtered then someone might be able to help?
