03_pds.ymlΒΆ

---
# The following lines should be removed when the following issue is closed:
# https://github.com/bluesky-social/pds/issues/52

- name: ⬇️ Download pdsadmin tarball
  get_url_retry:
    url: "https://github.com/lhaig/pdsadmin/releases/download/v1.0.0-dev/pdsadmin_Linux_x86_64.tar.gz"
    dest: "{{ BLUESKY_PDSADMIN_TMP_TAR }}"
    mode: "0644"
  register: bluesky_pdsadmin_download

- name: πŸ“ Create {{ BLUESKY_PDSADMIN_DIR }}
  file:
    path: "{{ BLUESKY_PDSADMIN_DIR }}"
    state: directory
    mode: "0755"

- name: πŸ“€ Extract pdsadmin tarball
  unarchive:
    src: "{{ BLUESKY_PDSADMIN_TMP_TAR }}"
    dest: "{{ BLUESKY_PDSADMIN_DIR }}"
    remote_src: true
    mode: "0755"

- name: βœ… Ensure pdsadmin is executable
  file:
    path: "{{ BLUESKY_PDSADMIN_FILE }}"
    mode: "0755"
    state: file