Hello guys ,
I’m using pulp_squeezer module to sync deb repositories through Ansible, but
while I’m synchronizing the repository to a specific distributions (stable
), I expect that the distribution should stay the same as the remote, but it’s set to default
instead.
Expected path: repository_name/ubuntu/dists/stable/
Current outcome path: repository_name/ubuntu/dists/default/
It this behavior intentional?
It there a way to customize it?
Related code
- name: "Create {{ repository_type }} remote objects"
pulp.squeezer.deb_remote:
name: "remote-{{ repository_type }}-{{ repo.name }}"
url: "{{ repo.url }}"
state: present
policy: "{{remote_sync_policy}}"
distributions: "stable"
- name: "Create {{ repository_type }} repository"
pulp.squeezer.deb_repository:
name: "{{ repository_type }}-{{ repo.name }}"
state: present
- name: "Sync {{ repository_type }} repository from remote"
pulp.squeezer.deb_sync:
remote: "remote-{{ repository_type }}-{{ repo.name }}"
repository: "{{ repository_type }}-{{ repo.name }}"
mirror: true
- name: "Create a {{ repository_type }} publication"
pulp.squeezer.deb_publication:
repository: "{{ repository_type }}-{{ repo.name }}"
state: present
- name: "Create a {{ repository_type }} distribution"
pulp.squeezer.deb_distribution:
name: "{{ repository_type }}-{{ pub_result.repo.name }}"
base_path: "{{ pub_result.repo.name }}/{{ repository_type }}"
state: present
publication: "{{ pub_result.publication.pulp_href }}"
- name: "Remove {{ repository_type }} feed"
pulp.squeezer.deb_remote:
name: "remote-{{ repository_type }}-{{ repo.name }}"
state: absent