How to add custom HTTP, Client and Server SSL profiles to VS with Ansible Playbook

Hi everyone

I am creating a Ansible playbook to deploy a virtual server with custom http profile and specific client and server ssl profiles. These profiles all reside in the /common partition but I want to build my VS in a partition called Ansible.

But I am getting this error

FAILED! => {“changed”: false, “msg”: “A profile name must be specified when a context is specified.”}

has anyone created a similar playbook or familiar with the syntax?

Thanks

Below is the playbook -

name: Create a VIP

bigip_virtual_server:

provider: “{{ provider }}”

description: webssl_vs

partition: ANSIBLE

destination: 172.16.100.50

name: ansible_vs

pool: ansible_pool_https

port: 443

snat: Automap

profiles:

- name: /Common/X_Forward_For

- context: http

- name: /Common/Campus

- context: server-side

delegate_to: localhost

For your profile list, you might not need to supply a context if each profile is uniquely named. Try just listing the profile names and see what happens. Example:

profiles:

-X_Forward_For

-Compus