sap.sap_operations.cf role – Role to manage Cloud Foundry cli

Note

This role is part of the sap.sap_operations collection.

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 sap.sap_operations.

To use it in a playbook, specify: sap.sap_operations.cf.

Entry point __author__ – Author Information

Synopsis

  • Kirill Satarin (@kksat)

Entry point __dependencies__ – Dependencies

Synopsis

  • Role has no dependencies to other roles.

Entry point __examples__ – Example Playbooks

Synopsis

  • ```ansible

    • hosts: all

  • tasks:

    • name: Ensure cf cli present

  • ansible.builtin.include_role:

  • name: sap.sap_operations.cf

  • vars:

  • cf_state: present

    • name: Ensure cf cli present

  • ansible.builtin.include_role:

  • name: sap.sap_operations.cf

  • vars:

  • cf_state: absent

  • ```

Entry point __license__ – License

Synopsis

  • GPL-3.0-only

Entry point __limitations__ – Limitations

Synopsis

  • None

Entry point main – Role to manage Cloud Foundry cli

Synopsis

  • Role requires root access, ansible user should be able to sudo

  • Role will add Cloud Foundry repo and install cf cli

  • If cf_state is absent, cf cli package will be removed.

Parameters

Parameter

Comments

cf_package_name

string

Cloud Foundry cli version, that will be installed, or removed

Choices:

  • "cf8-cli" ← (default)

  • "cf7-cli"

cf_state

string

Cloud Foundry cli state

Choices:

  • "present" ← (default)

  • "absent"