damex.cloudflare.cloudflare_pages_project_info module – Ensure Cloudflare Pages project information is gathered
Note
This module is part of the damex.cloudflare collection (version 1.2.3).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install damex.cloudflare.
To use it in a playbook, specify: damex.cloudflare.cloudflare_pages_project_info.
Synopsis
Gathers information about Cloudflare Pages projects.
Returns information about all projects or a specific project.
Parameters
Parameter |
Comments |
|---|---|
Cloudflare account API key. Required together with |
|
Cloudflare account email. Required together with |
|
Cloudflare account identifier. Required if |
|
Cloudflare account name. Required if Resolved to account identifier via the Cloudflare API. |
|
Cloudflare API token. Required if Can be specified in |
|
Project name to query. If not specified, all projects are returned. |
Attributes
Attribute |
Support |
Description |
|---|---|---|
Support: full |
Supports check mode. |
|
Support: none |
Does not support diff mode. |
Examples
- name: Ensure Pages project information is gathered
damex.cloudflare.cloudflare_pages_project_info:
account_name: damex
api_token: "{{ cloudflare_api_token }}"
register: cloudflare_pages_project_information
- name: Ensure specific Pages project information is gathered
damex.cloudflare.cloudflare_pages_project_info:
name: my-docs
account_name: damex
api_token: "{{ cloudflare_api_token }}"
register: cloudflare_pages_project_information
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Pages project information. Returned: always |
|
Custom domains. Returned: always |
|
Project name. Returned: always |
|
Production branch. Returned: always |
|
Pages subdomain. Returned: always |