Forum Discussion

tell_316027's avatar
tell_316027
Icon for Altostratus rankAltostratus
Nov 26, 2018

Ansible role best practice for F5

I am deploying f5 by Ansible , but I got a question. For instance, if I want use roles to save system configuration , the module bigip_config is what I need , then I write a role bigip_config, It works . However , what if I want to load system configuration ? Could I put the two task into the same role ? And then how to call them independently ? Or maybe two roles are replaced which are named bigip_config_save and bigip_config_load ?

 

1 Reply

  • roles/bigip_config/tasks/main.yml

     

    • name: save sys config bigip_config: save: yes

       

    • name: load sys config deafult bigip_config: reset: yes save: yes