From 1cb1aad0c84e20ca2d95406b727353fe7189ccd6 Mon Sep 17 00:00:00 2001 From: Yo-han <197600+yo-han@users.noreply.github.com> Date: Tue, 18 Jul 2023 11:21:36 +0200 Subject: [PATCH] misc chores --- .github/workflows/ansible-test.yml | 98 ------------------------------ .github/workflows/release.yml | 6 +- README.md | 13 ++-- galaxy.yml | 2 +- 4 files changed, 8 insertions(+), 111 deletions(-) delete mode 100644 .github/workflows/ansible-test.yml diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml deleted file mode 100644 index 149407b..0000000 --- a/.github/workflows/ansible-test.yml +++ /dev/null @@ -1,98 +0,0 @@ ---- -name: CI -on: - pull_request: - push: - # schedule: - # - cron: '0 6 * * *' - -env: - NAMESPACE: yo_han - COLLECTION_NAME: transip - -jobs: - sanity: - name: Sanity (Ⓐ${{ matrix.ansible }}) - strategy: - matrix: - ansible: - - stable-2.12 - - stable-2.13 - - devel - runs-on: ubuntu-latest - steps: - - - name: Check out code - uses: actions/checkout@v3 - with: - path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.9 - - - name: Install ansible-base (${{ matrix.ansible }}) - run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check - - - name: Run sanity tests - run: ansible-test sanity -v --color - working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} - - # Integration tests are disable to run in CI workflow as the integrations - # tests aren't running with consistent result using the TransIP demo token - # specified in tests/integration/integration_config.yml - # integration: - # runs-on: ubuntu-latest - # name: I (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }}) - # strategy: - # fail-fast: false - # matrix: - # ansible: - # - stable-2.9 - # - stable-2.10 - # - devel - # python: - # - 2.6 - # - 2.7 - # - 3.5 - # - 3.6 - # - 3.7 - # - 3.8 - # - 3.9 - # exclude: - # # Because ansible-test doesn't support python3.9 for Ansible 2.9 - # - ansible: stable-2.9 - # python: 3.9 - - # steps: - # - name: Check out code - # uses: actions/checkout@v2 - # with: - # path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} - - # - name: Set up Python - # uses: actions/setup-python@v2 - # with: - # python-version: 3.8 - - # - name: Install ansible-base (${{ matrix.ansible }}) - # run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check - - # # OPTIONAL If your integration test requires Python libraries or modules from other collections - # # Install them like this - # # - name: Install collection dependencies - # # run: ansible-galaxy collection install ansible.netcommon -p . - - # - name: Run integration test - # run: ansible-test integration -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker --coverage - # working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} - - # - name: Generate coverage report - # run: ansible-test coverage xml -v --requirements --group-by command --group-by version - # working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}} - - # # See the reports at https://codecov.io/gh/GITHUBORG/REPONAME - # # - uses: codecov/codecov-action@v1 - # # with: - # # fail_ci_if_error: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e1a3944..8f068f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: '3.11' - name: Install dependencies run: | diff --git a/README.md b/README.md index cfed1f7..f198d49 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,12 @@ # TransIP Collection -[![CI](https://github.com/yo-han/ansible-collection-transip/workflows/CI/badge.svg?event=push)](https://github.com/yo-han/ansible-collection-transip/actions) - This collection contains modules and plugins to assist in automating [TransIP][transip] infrastructure and API interactions with Ansible. It was orignally started by [Roald Nefs](https://github.com/roaldnefs/ansible-collection-transip). This is the forked and expended version of the collection. -## Tested with Ansible - -Tested with the current Ansible 2.13 release and the current development version of Ansible. Ansible versions before 2.9.10 are not supported. - ## Included content - transip_sshkey – Manage TransIP SSH keys - transip_vps – Create and delete a TransIP VPS +- transip_vps_os – Install a new OS on a TransIP VPS - transip_domain – Create and delete a TransIP DNS entries - transip_network – Create and delete a TransIP Private Networks @@ -29,7 +24,7 @@ You can also include it in a `requirements.yml` file and install it via `ansible --- collections: - name: yo_han.transip - version: 0.3.0 + version: 0.4.1 ``` ### Using modules from the TransIP Collection in your playbooks @@ -48,8 +43,8 @@ It's preferable to use content in this collection using their Fully Qualified Co state: present description: "example vps description" unique_description: true - product_name: vps-bladevps-x1 - operating_system: ubuntu-18.04 + product_name: vps-bladevps-x2 + operating_system: ubuntu-22.04 availability_zone: ams0 access_token: REDACTED register: result diff --git a/galaxy.yml b/galaxy.yml index d75db49..00079be 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -7,7 +7,7 @@ authors: - Roald Nefs (github/roaldnefs) - Johan Kuijt (github/yo-han) description: TransIP Ansible Collection. -license_file: COPYING +license_files: COPYING tags: - transip - cloud