ansible.builtin.fortios_report_theme (v2.8.20) — module

Report themes configuration in Fortinet's FortiOS and FortiGate.

| "added in version" 2.8 of ansible.builtin"

Authors: Miguel Angel Munoz (@mamunozgonzalez), Nicolas Thomas (@thomnico)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.8.20

Description

This module is able to configure a FortiGate or FortiOS by allowing the user to set and modify report feature and theme category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.2


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- hosts: localhost
  vars:
   host: "192.168.122.40"
   username: "admin"
   password: ""
   vdom: "root"
  tasks:
  - name: Report themes configuration
    fortios_report_theme:
      host:  "{{ host }}"
      username: "{{ username }}"
      password: "{{ password }}"
      vdom:  "{{ vdom }}"
      https: "False"
      report_theme:
        state: "present"
        bullet-list-style: "<your_own_value>"
        column-count: "1"
        default-html-style: "<your_own_value>"
        default-pdf-style: "<your_own_value>"
        graph-chart-style: "<your_own_value>"
        heading1-style: "<your_own_value>"
        heading2-style: "<your_own_value>"
        heading3-style: "<your_own_value>"
        heading4-style: "<your_own_value>"
        hline-style: "<your_own_value>"
        image-style: "<your_own_value>"
        name: "default_name_14"
        normal-text-style: "<your_own_value>"
        numbered-list-style: "<your_own_value>"
        page-footer-style: "<your_own_value>"
        page-header-style: "<your_own_value>"
        page-orient: "portrait"
        page-style: "<your_own_value>"
        report-subtitle-style: "<your_own_value>"
        report-title-style: "<your_own_value>"
        table-chart-caption-style: "<your_own_value>"
        table-chart-even-row-style: "<your_own_value>"
        table-chart-head-style: "<your_own_value>"
        table-chart-odd-row-style: "<your_own_value>"
        table-chart-style: "<your_own_value>"
        toc-heading1-style: "<your_own_value>"
        toc-heading2-style: "<your_own_value>"
        toc-heading3-style: "<your_own_value>"
        toc-heading4-style: "<your_own_value>"
        toc-title-style: "<your_own_value>"

Inputs

    
host:
    description:
    - FortiOS or FortiGate ip address.
    required: true

vdom:
    default: root
    description:
    - Virtual domain, among those defined previously. A vdom is a virtual instance of
      the FortiGate that can be configured and used as a different unit.

https:
    default: true
    description:
    - Indicates if the requests towards FortiGate must use HTTPS protocol
    type: bool

password:
    default: ''
    description:
    - FortiOS or FortiGate password.

username:
    description:
    - FortiOS or FortiGate username.
    required: true

report_theme:
    default: null
    description:
    - Report themes configuration
    suboptions:
      bullet-list-style:
        description:
        - Bullet list style.
      column-count:
        choices:
        - 1
        - 2
        - 3
        description:
        - Report page column count.
      default-html-style:
        description:
        - Default HTML report style.
      default-pdf-style:
        description:
        - Default PDF report style.
      graph-chart-style:
        description:
        - Graph chart style.
      heading1-style:
        description:
        - Report heading style.
      heading2-style:
        description:
        - Report heading style.
      heading3-style:
        description:
        - Report heading style.
      heading4-style:
        description:
        - Report heading style.
      hline-style:
        description:
        - Horizontal line style.
      image-style:
        description:
        - Image style.
      name:
        description:
        - Report theme name.
        required: true
      normal-text-style:
        description:
        - Normal text style.
      numbered-list-style:
        description:
        - Numbered list style.
      page-footer-style:
        description:
        - Report page footer style.
      page-header-style:
        description:
        - Report page header style.
      page-orient:
        choices:
        - portrait
        - landscape
        description:
        - Report page orientation.
      page-style:
        description:
        - Report page style.
      report-subtitle-style:
        description:
        - Report subtitle style.
      report-title-style:
        description:
        - Report title style.
      state:
        choices:
        - present
        - absent
        description:
        - Indicates whether to create or remove the object
      table-chart-caption-style:
        description:
        - Table chart caption style.
      table-chart-even-row-style:
        description:
        - Table chart even row style.
      table-chart-head-style:
        description:
        - Table chart head row style.
      table-chart-odd-row-style:
        description:
        - Table chart odd row style.
      table-chart-style:
        description:
        - Table chart style.
      toc-heading1-style:
        description:
        - Table of contents heading style.
      toc-heading2-style:
        description:
        - Table of contents heading style.
      toc-heading3-style:
        description:
        - Table of contents heading style.
      toc-heading4-style:
        description:
        - Table of contents heading style.
      toc-title-style:
        description:
        - Table of contents title style.

Outputs

build:
  description: Build number of the fortigate image
  returned: always
  sample: '1547'
  type: str
http_method:
  description: Last method used to provision the content into FortiGate
  returned: always
  sample: PUT
  type: str
http_status:
  description: Last result given by FortiGate on last operation applied
  returned: always
  sample: '200'
  type: str
mkey:
  description: Master key (id) used in the last call to FortiGate
  returned: success
  sample: id
  type: str
name:
  description: Name of the table used to fulfill the request
  returned: always
  sample: urlfilter
  type: str
path:
  description: Path of the table used to fulfill the request
  returned: always
  sample: webfilter
  type: str
revision:
  description: Internal revision number
  returned: always
  sample: 17.0.2.10658
  type: str
serial:
  description: Serial number of the unit
  returned: always
  sample: FGVMEVYYQT3AB5352
  type: str
status:
  description: Indication of the operation's result
  returned: always
  sample: success
  type: str
vdom:
  description: Virtual domain used
  returned: always
  sample: root
  type: str
version:
  description: Version of the FortiGate
  returned: always
  sample: v5.6.3
  type: str