1

I would need to translate the following Openstack command in an Ansible task:

neutron rbac-create --target-tenant <TENANT_ID> --action access_as_shared --type network <SUBNET_ID>

Is any module that helps creating the RBAC in Ansible?

Albert
  • 191
  • 1
  • 3
  • 23

1 Answers1

0

For the beginning you could start just with the shell_module.


- name: 
  shell:
    cmd: neutron rbac-create --target-tenant {{ TENANT_ID }} --action access_as_shared --type network {{ SUBNET_ID }}
  ...

Than proceed further with Ansible Collections and Openstack.Cloud modules and check which of the network related modules could fit for the OpenStack Networking service (neutron) like openstack.cloud.network.

U880D
  • 8,601
  • 6
  • 24
  • 40