changed the readme for new deb822 format
All checks were successful
test / Linting (push) Successful in 26s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m14s
test / Molecule tests (default, debian11) (push) Successful in 1m37s
test / Molecule tests (default, debian12) (push) Successful in 1m41s
test / Molecule tests (with_custom_repo, debian11) (push) Successful in 54s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m7s
test / Molecule tests (with_custom_repo, debian12) (push) Successful in 55s
test / Molecule tests (with_custom_repo, ubuntu2204) (push) Successful in 1m0s
test / Molecule tests (with_custom_repo, ubuntu2004) (push) Successful in 1m23s

This commit is contained in:
Bertrand Lanson 2023-09-16 12:18:30 +02:00
parent 8137e6aad4
commit 97321a52e9

View File

@ -32,16 +32,20 @@ This variable sets the mirror URLs for the main repositories. You can optionally
```yaml ```yaml
manage_repositories_custom_repo: # by default, this variable is not defined manage_repositories_custom_repo: # by default, this variable is not defined
- uri: "https://apt.releases.hashicorp.com" - name: docker
gpg_key: "https://apt.releases.hashicorp.com/gpg" uri: "https://download.docker.com/linux/{{ ansible_distribution|lower }}"
comments: "hashicorp repository" comments: "{{ ansible_distribution|lower }} docker repository"
type: "deb" types:
suites: "{{ ansible_distribution_release }}" - deb
components: "main" suites:
filename: "hashicorp" - "{{ ansible_distribution_release }}"
- uri: ... components:
- stable
options:
Signed-By: "https://download.docker.com/linux/{{ ansible_distribution|lower }}/gpg"
- name: ...
``` ```
This variable contains a list (1 to N) of custom repositories to install. IT HAS TO BE SET if `manage_repositories_enable_custom_repo == true`, or else the role might fail. Any unused field (like `gpg_key` in some instances) should be left blank (ex. `gpg_key:`). the role evaluates this against `None` to check if actions are needed. This variable contains a list (1 to N) of custom repositories to install. IT HAS TO BE SET if `manage_repositories_enable_custom_repo == true`, or else the role might fail. The `options` entries are optional, and you can add pretty much all standard options. The `Signed-By` option expects a URL to download the gpg key. If no options are needed, the `options` key can be removed completely.
Dependencies Dependencies
------------ ------------
@ -69,13 +73,17 @@ Example Playbook
manage_repositories_enable_default_repo: false manage_repositories_enable_default_repo: false
manage_repositories_enable_custom_repo: true manage_repositories_enable_custom_repo: true
manage_repositories_custom_repo: manage_repositories_custom_repo:
- uri: "https://apt.releases.hashicorp.com" - name: docker
gpg_key: "https://apt.releases.hashicorp.com/gpg" uri: "https://download.docker.com/linux/{{ ansible_distribution|lower }}"
comments: "hashicorp repository" comments: "{{ ansible_distribution|lower }} docker repository"
type: "deb" types:
suites: "{{ ansible_distribution_release }}" - deb
components: "main" suites:
filename: "hashicorp" - "{{ ansible_distribution_release }}"
components:
- stable
options:
Signed-By: "https://download.docker.com/linux/{{ ansible_distribution|lower }}/gpg"
``` ```
License License